Post Reply 
Addings/modifications to help files
Jul. 20, 2009, 07:54 AM
Post: #18
RE: Addings/modifications to help files
(Jul. 20, 2009 06:11 AM)sidki3003 Wrote:  
(Jul. 20, 2009 03:35 AM)whenever Wrote:  No, "+" doesn't look ahead, it just repeats the preceding expression blindly. The help file has below words:

Sure it doesn't. It *removes* look ahead capatibility from subexpressions like "*>".

Yes, the subexpressions "*>" doesn't look ahead when you suffix it with a "+", it is similar to Atomic Grouping in general regex flavors, but I think the "*" *within* the subexpressions still looks ahead until it finds the first ">". That's where I think slower than "[^>]+>".

Quote:\*\*\*+{98} instead of \*+{100} makes the expression start with two unique chars, which is what we want.
That's interesting, although I still couldn't understand why.

Better change the doc to:

Quote:Example:
To test for 100 asterisk symbols anywhere in a document:
\*\*\*+{98} instead of \*+{100}
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Addings/modifications to help files - whenever - Jul. 20, 2009 07:54 AM

Forum Jump: