This allows you to use perl style regular expressions within your 4GL program.
13.5.1 Dependancies
pcre - Perl Compatible Regular Expressions http://www.pcre.org/
13.5.2 Function list
Returns the matched portion of the string (up to 30 ’portions’ are stored)
pcre_text(i)
Indicate if the string ’s’ matches the regular expression ’p’
pcre_match(p,s)
Eg.
import package a4gl_pcre main
if pcre_match("cat|dog","There was an old cat") then
display "Matches to ",pcre_text(1)
else
display "No match"
end if
end main