Hello,
I tried to execute example code from the wiki page:
type(ftlString) :: line
type(ftlRegex) :: r
type(ftlRegexMatch), allocatable :: m(:)
line = 'keyword option1=value option2=othervalue'
call r%New('(\w+)\s*=\s*(\w+)')
m = r%Match(line)
! m(1)%text now holds 'option1=value'
! m(2)%text now holds 'option2=othervalue'
! m(:)%group is also populated with the contents of the capture groups.
! e.g. m(1)%group(2)%text holds 'value'
However, when the program tries to execute r%Match(line), it just starts printing the same error until I stop it:
ftlRegex ERROR: No match
The library was compiled using the provided makefile with platform set to intel (ifort 19.0.3.199 20190206). Any ideas what can be wrong?
Hello,
I tried to execute example code from the wiki page:
However, when the program tries to execute r%Match(line), it just starts printing the same error until I stop it:
The library was compiled using the provided makefile with platform set to intel (ifort 19.0.3.199 20190206). Any ideas what can be wrong?