[pcre-dev] [Bug 1380] Report match when doesn't match and vi…

Góra strony
Delete this message
Autor: Sorin
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1380] Report match when doesn't match and vice-versa
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1380




--- Comment #3 from Sorin <sxn02@???> 2013-08-18 03:44:34 ---
Hi,

Cannot say yes or no yet, sorry. I'm only creating and submitting regexes, the
actual execution is remote, out of my control. All I know is which of the
servers runs in Java, and which in PHP. For PHP I read the regex documentation,
and haven't noticed the verbs you mention below. Friday I downloaded and
browsed the PCRE docs, but I still need to get familiar with that part.

Back to your question, I'll have to ask a remote siteop to test for me the
regex, that won't happen before Monday.

On a different note, having a verb like (*SKIP) means that if I ever need to
match the string (*SKIP) I'll escape the open par? \(*SKIP) ?

Thanks for your suggestion,
Sorin




________________________________
From: Zoltan Herczeg <hzmester@???>
To: sxn02@???
Sent: Saturday, August 17, 2013 3:59:54 PM
Subject: [Bug 1380] Report match when doesn't match and vice-versa


------- You are receiving this mail because: -------
You reported the bug.

http://bugs.exim.org/show_bug.cgi?id=1380




--- Comment #2 from Zoltan Herczeg <hzmester@???>  2013-08-17 20:59:53
---
Ooops, I forgot that another A can be in the input stream:

  re> /A.{0,6}(*SKIP)(*FAIL)|B/
data> ABBBABBBBBB

0: B
data>

This one is better:

  re> /(A(?:(?!A).){0,6})+(*SKIP)(*FAIL)|B/
data> ABBBABBBBBB

No match
data> ABBBABBBBBBB

0: B

Does this satisfy your needs?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email