-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtime_regex.f90
29 lines (21 loc) · 1.05 KB
/
time_regex.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
program fox_time
use fexp
implicit none
character(len=30) :: qname = 'avalid:qname12345678abcdefghi'
character(len=52) :: xmlstartletter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
character(len=12) :: xmlothers = '-_1234567890' ! NB - should include '.'
integer :: i
logical :: l
!do i = 1, 10000000
do i = 1, 1
print*, match('^['//xmlstartletter//']['//xmlothers//xmlstartletter//']*:[' &
& //xmlstartletter//']['//xmlothers//xmlstartletter//']*$' ,'avalid:qname'), &
& matchstart, matchlength
print*, match('^['//xmlstartletter//']['//xmlothers//xmlstartletter//']*:[' &
& //xmlstartletter//']['//xmlothers//xmlstartletter//']*' ,'avalid:qname'), &
& matchstart, matchlength
print*, match('['//xmlstartletter//']['//xmlothers//xmlstartletter//']*:[' &
& //xmlstartletter//']['//xmlothers//xmlstartletter//']*' ,'avalid:qname'), &
& matchstart, matchlength
enddo
end program fox_time