Editing Talk:1638: Backslashes
Please sign your posts with ~~~~ |
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 168: | Line 168: | ||
Therefore, the end of the title text regex matches a backslash followed by either ] or ), which is then followed by any number (including none) of characters so long as they are not ] nor ) which means the whole regex can match "<span style="color:#040;">\[something\] more</span>" or "<span style="color:#040;">\(something\)more</span>" or "<span style="color:#040;">\[something\) more</span>" as well as "<span style="color:#040;">\[something\]</span>". — [[Special:Contributions/162.158.255.117|162.158.255.117]] 01:16, 4 February 2016 (UTC) | Therefore, the end of the title text regex matches a backslash followed by either ] or ), which is then followed by any number (including none) of characters so long as they are not ] nor ) which means the whole regex can match "<span style="color:#040;">\[something\] more</span>" or "<span style="color:#040;">\(something\)more</span>" or "<span style="color:#040;">\[something\) more</span>" as well as "<span style="color:#040;">\[something\]</span>". — [[Special:Contributions/162.158.255.117|162.158.255.117]] 01:16, 4 February 2016 (UTC) | ||
− | I'll add that I use an ''almost identical'' regex in my mail server for matching mailing-list subject lines which often have a format of "<span style="color:#040;">[Listname] normal subject line< | + | I'll add that I use an ''almost identical'' regex in my mail server for matching mailing-list subject lines which often have a format of "<span style="color:#040;">[Listname] normal subject line<span>" which made it pretty recognizable to me. — [[Special:Contributions/162.158.255.117|162.158.255.117]] 01:24, 4 February 2016 (UTC) |
;Example of a match | ;Example of a match |