Editing Talk:1638: Backslashes

Jump to: navigation, search
Ambox notice.png 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</span>" which made it pretty recognizable to me. — [[Special:Contributions/162.158.255.117|162.158.255.117]] 01:24, 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<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

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Templates used on this page: