Page is a not externally linkable
Fotiman - 3:26 pm on Sep 24, 2008 (gmt 0)
@ = a letter But what if the "anything else" contains one of the tokens characters? For example, what if I wanted to match a string like: "Fotiman@example.com" I would suggest that if you're going to go the route or creating your own regex language, you'd need to specify an escape character as well. For example: @ = a letter
* = a letter
# = a number
@ = either
anything else = itself
If it were me, I would swap * and @, because to me @ looks more like a letter and * is traditionally a wildcard to mean anything. So:
# = a number
* = either
anything else = itself
# = a number
* = either
anything else = itself
\@ = a literal "@"
\# = a literal "#"
\* = a literal "*"
\\ = a literal "\"