[Bug 66032] AbuseFilter should allow storing regex matches into variables
https://bugzilla.wikimedia.org/show_bug.cgi?id=66032 Andre Klapper aklap...@wikimedia.org changed: What|Removed |Added Priority|Unprioritized |Low -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 66032] AbuseFilter should allow storing regex matches into variables
https://bugzilla.wikimedia.org/show_bug.cgi?id=66032 Huji huji.h...@gmail.com changed: What|Removed |Added See Also||https://bugzilla.wikimedia. ||org/show_bug.cgi?id=47512 -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 66032] AbuseFilter should allow storing regex matches into variables
https://bugzilla.wikimedia.org/show_bug.cgi?id=66032 Liangent liang...@gmail.com changed: What|Removed |Added CC||liang...@gmail.com --- Comment #1 from Liangent liang...@gmail.com --- In some of our (zhwiki) filters, I use something like: (removed_lines + 'UNIQUE_STRING' + new_wikitext) rlike 'ref name=([^]+).*UNIQUE_STRING.*ref name=\1/' -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 66032] AbuseFilter should allow storing regex matches into variables
https://bugzilla.wikimedia.org/show_bug.cgi?id=66032 --- Comment #2 from Huji huji.h...@gmail.com --- Thanks; while I am trying to get that to work, I still want to point out that this method can only pass the matches to the next part of the same regex (i.e. \1 only works within the context of the same rlike function). Ideally, one should be able to start \1 into a variable and then use that variable in a subsequent line of code. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 66032] AbuseFilter should allow storing regex matches into variables
https://bugzilla.wikimedia.org/show_bug.cgi?id=66032 --- Comment #3 from Liangent liang...@gmail.com --- (In reply to Huji from comment #2) Thanks; while I am trying to get that to work, I still want to point out that this method can only pass the matches to the next part of the same regex (i.e. \1 only works within the context of the same rlike function). Ideally, one should be able to start \1 into a variable and then use that variable in a subsequent line of code. Yeah but normally this trick works everywhere where the variable is used a next regex match, because you can always concatenate other variables together and use a big regex to match that long string, like what's done above. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l