Re: [q-lang-users] regex
Brought to you by:
agraef
From: <ed...@ri...> - 2007-07-03 11:17:13
|
Thanks, the first one was the one I was looking for.=0D =0D Eddie=0D =0D On Mon Jul 2 19:10 , Keith Trenton <kaz...@ea...> sent:=0D =0D > =0D >Hello Eddie -- =0D >=0D >--- ed...@ri... wrote:=0D >- I cannot find in the manual and GNU Regex manual=0D >- how to do a nongreedy match.=0D >=0D >>From the resource of resources (Wikipedia) wrt. (modern) POSIX regexp:=0D >=0D >[1] "modern regular expression tools allow a quantifier to be specified as= non-=0D greedy, by putting a question mark after the quantifier";=0D >=0D >and more specifically,=0D >=0D >[2] ? Match the last "block" zero or one times - "ba?" matches "b" or "ba"= .=0D >=0D >HTH!=0D >=0D >=0D >Albert: I AGREE with John: PCRE over POSIX regexp IS the way to go. =3D)= =0D >=0D >It is also worth noting that the switch to PCRE will bring Q another step = closer =0D to mainstream scripting languages. IMHO this is a GOOD THING. ;-)=0D >=0D >Cheers,=0D >Keith =0D > =0D >=0D >-------------------------------------------------------------------------= =0D >This SF.net email is sponsored by DB2 Express=0D >Download DB2 Express C - the FREE version of DB2 express and take=0D >control of your XML. No limits. Just data. Click to get it now.=0D >http://sourceforge.net/powerbar/db2/=0D >_______________________________________________=0D >q-lang-users mailing list=0D >q-l...@li...=0D >https://lists.sourceforge.net/lists/listinfo/q-lang-users=0D =0D =0D |