https://bugzilla.wikimedia.org/show_bug.cgi?id=38566

Bartosz Dziewoński <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Bartosz Dziewoński <[email protected]> 2012-08-09 
17:09:52 UTC ---
Would the following regexp work?

\[\[:?([^\|\]\n]*?)(\|([^\|\]\n]*?))*\]\]([^[]*)

I've basically replaced every "." ("any character except for newline") with
"[^\|\]\n]" ("any character except for |, ] or newline"). This prevents
catastrophic backtracking[1].

[1] http://www.regular-expressions.info/catastrophic.html

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to