
2 May
2007
2 May
'07
10:32 p.m.
"John Maddock"
Use regex_search. regex_match will only succeed if the expression matches *all* of the string, regex_search will *find* a sub-string that matches.
Just to clarify this point. Does this mean that regex_match effectively puts ^ and $ on either side of my regex, to ensure it matches the whole string, whereas regex_search does not? Many thanks, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.