CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [orange] regular expression, smallest match: Edit Log



BillKSmith
Veteran

May 27, 2013, 4:02 AM


Views: 343
Re: [orange] regular expression, smallest match

All of the quantifiers ({n,m}, {n,}, {n}, *, +, ?) are greedy. They all have an equivalent non-greedy version ({n,m}?, {n,}?, {n}?, *?, +?, ??).

UPDATE: Fixed typo in non-greedy version of {n}.
Good Luck,
Bill

(This post was edited by BillKSmith on May 27, 2013, 8:01 AM)


Edit Log:
Post edited by BillKSmith (Veteran) on May 27, 2013, 8:01 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives