Section 13.4: memcached Up Chapter 13: Aubit4GL Packages Section 13.6: pop 

13.5 pcre

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

13.5.2.1 pcre_text

Returns the matched portion of the string (up to 30 ’portions’ are stored)
pcre_text(i)

13.5.2.2 pcre_match

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 
 Section 13.4: memcached Up Chapter 13: Aubit4GL Packages Section 13.6: pop