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:
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
A free online regular expression test tool that allows to try you regular expression pattern and see...