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: Regular Expressions: Re: [BillKSmith] PCRE backtracking: Edit Log



hwnd
User

May 23, 2014, 9:48 PM


Views: 34123
Re: [BillKSmith] PCRE backtracking

Bill, the PCRE manpage was very interesting that it could be done as such.


Code
 (?| (?=[\x00-\x7f])(\C) | 
(?=[\x80-\x{7ff}])(\C)(\C) |
(?=[\x{800}-\x{ffff}])(\C)(\C)(\C) |
(?=[\x{10000}-\x{1fffff}])(\C)(\C)(\C)(\C))


The issue I suppose is I'm not sure how you account for the length of the first group here.


(This post was edited by recruiter on May 23, 2014, 9:55 PM)


Edit Log:
Post edited by hwnd (User) on May 23, 2014, 9:55 PM


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

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