Re: [pcre-dev] What is the expected behavior of /(?=..(*MARK:a))(*SKIP:a)(*FAIL)|./g

2016-03-21 Thread Thanh Hong Dai
Dear Zoltan, Thanks for your reply. That is exactly what I want to know. Best regards, Thanh Hong. -Original Message- From: Zoltán Herczeg [mailto:hzmes...@freemail.hu] Sent: Monday, 21 March, 2016 2:54 PM To: Thanh Hong Dai Cc: pcre-dev@exim.org Subject: RE:

Re: [pcre-dev] What is the expected behavior of /(?=..(*MARK:a))(*SKIP:a)(*FAIL)|./g

2016-03-21 Thread Zoltán Herczeg
>Does it mean that (*SKIP:label) looks for the (*MARK:label) in the regex >execution stack to figure out where to bump along to? Exactly. It searches the last MARK in the regex stack which name matches and restart the match from there. E.g.: when /x(*:a)x(*:a)(*SKIP:a)(*FAIL)|./ matches to

Re: [pcre-dev] What is the expected behavior of /(?=..(*MARK:a))(*SKIP:a)(*FAIL)|./g

2016-03-21 Thread Thanh Hong Dai
Hi, > I think these questions are better suited to https://www.reddit.com/r/regex I want the answer to be from the perspective of the implementation. Looking at the link, it looks similar to StackOverflow with all the "write me a regex" question, instead of "how is this token implemented". >