Skip to content

Match whole string with regex

To check if the whole string is matching to your regex, add the ^ character at the start and the $ character at the end of the string.


Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.