suprinsingly -> surprisingly (#658)

one char typo
This commit is contained in:
Dirk Eddelbuettel 2018-06-20 04:09:36 -05:00 committed by Hadley Wickham
parent 7bcbe88f5b
commit 64a1716d71
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\]
?:\r\n)?[ \t])*))*)?;\s*)
```
This is a somewhat pathological example (because email addresses are actually suprisingly complex), but is used in real code. See the stackoverflow discussion at <http://stackoverflow.com/a/201378> for more details.
This is a somewhat pathological example (because email addresses are actually surprisingly complex), but is used in real code. See the stackoverflow discussion at <http://stackoverflow.com/a/201378> for more details.
Don't forget that you're in a programming language and you have other tools at your disposal. Instead of creating one complex regular expression, it's often easier to write a series of simpler regexps. If you get stuck trying to create a single regexp that solves your problem, take a step back and think if you could break the problem down into smaller pieces, solving each challenge before moving onto the next one.