Difference between revisions of "Talk:1638: Backslashes"
(→I don't think the regex is invalid: new section) |
|||
Line 8: | Line 8: | ||
Oh, and by the way, isn't this the third comic to mention "Ba'al, the Soul Eater"? Maybe we should start a category. (Others are [http://www.explainxkcd.com/wiki/index.php/1246:_Pale_Blue_Dot 1246] (title text) and [http://www.explainxkcd.com/wiki/index.php/1419:_On_the_Phone 1419].) | Oh, and by the way, isn't this the third comic to mention "Ba'al, the Soul Eater"? Maybe we should start a category. (Others are [http://www.explainxkcd.com/wiki/index.php/1246:_Pale_Blue_Dot 1246] (title text) and [http://www.explainxkcd.com/wiki/index.php/1419:_On_the_Phone 1419].) | ||
[[Special:Contributions/173.245.54.29|173.245.54.29]] 06:14, 3 February 2016 (UTC) | [[Special:Contributions/173.245.54.29|173.245.54.29]] 06:14, 3 February 2016 (UTC) | ||
+ | |||
+ | == I don't think the regex is invalid == | ||
+ | |||
+ | According to <tt>man grep</tt> you need to specify the <tt>-E</tt> option to use extended regex; without it unescaped parentheses are not interpreted, so they don't need to match. | ||
+ | |||
+ | My - very wild - guess is that it was the command he used to find the line with the most special characters, but I am not confident enough to edit the article (if someone can confirm?). |
Revision as of 06:31, 3 February 2016
It should be noted that this also occurs in almost every programming language where "\" is the escape character. i.e.
print("Hello") > Hello print("\"Hello\"") > "Hello" print("\\Hello\\") > \Hello\
Oh, and by the way, isn't this the third comic to mention "Ba'al, the Soul Eater"? Maybe we should start a category. (Others are 1246 (title text) and 1419.) 173.245.54.29 06:14, 3 February 2016 (UTC)
I don't think the regex is invalid
According to man grep you need to specify the -E option to use extended regex; without it unescaped parentheses are not interpreted, so they don't need to match.
My - very wild - guess is that it was the command he used to find the line with the most special characters, but I am not confident enough to edit the article (if someone can confirm?).