Other Resources:
End of string anchor $
What is the "end of string" anchor in a regular expression? How to use it?
How to write a regular expression using "end of string" anchor to validate words ending in 'z': quartz?
✍: FYIcenter.com
The "end of string" anchor is an atomic zero-width assertion specifing that the match must occur at the end of the string. The "end of string" anchor is represented as '$'. For example:
\w+day$ # matches strings of 'Monday', 'Tuesday', etc.
The regular expression to validate words ending in 'z':
\w+z$
\w+ - matches word characters 1 or more times
z - matches 'z'
$ - matches 'end of string'
2013-01-26, 0👍, 0💬
Popular Posts:
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
Are you having problems using regular expressions when processing text strings in your applications ...