Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upParse Error. Cannot parse escaped dots. #173
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
TheSeamau5
Feb 15, 2015
Contributor
Sorry, I just saw the warning in the regex docs saying:
Be careful to escape backslashes properly!
For example, "\w" is escaping the letter w which is probably not what you want.
You probably want "\\w" instead, which escapes the backslash.
|
Sorry, I just saw the warning in the regex docs saying:
|
TheSeamau5
closed this
Feb 15, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TheSeamau5 commentedFeb 15, 2015
This code:
causes the following error:
While this may seem like normal behavior for string, strings are also used to define regular expressions. So for example, a regular expression to parse emails is :
"[a-z0-9._+-]{1,20}@[a-z0-9]{3,15}\.[a-z]{2,4}"and this string yields a parse error due to the escaped periord towards the end (cuz, you know, emails end in
.comor.fror something)