Use the start and end delimiters: ^abc$
More Related Contents:
- How do I validate if a string is valid Yelp URL in javascript? [closed]
- Why this javascript regex doesn’t work?
- How can I match a whole word in JavaScript?
- How do I get the YouTube video ID from a URL?
- Javascript and regex: split string and keep the separator
- Javascript Regex: How to put a variable inside a regular expression? [duplicate]
- Regular Expression for password validation
- Recursive matching with regular expressions in Javascript
- How can I match multiple occurrences with a regex in JavaScript similar to PHP’s preg_match_all()?
- Converting any string into camel case
- utf-8 word boundary regex in javascript
- How to split a long regular expression into multiple lines in JavaScript?
- Works in Chrome, but breaks in Safari: Invalid regular expression: invalid group specifier name /(?
- Javascript – return string between square brackets
- How to prevent Javascript injection attacks within user-generated HTML
- Strange JavaScript idiom – what does “/xyz/.test(function(){xyz;})” do?
- Split string into sentences in javascript
- regex to find url in a text
- Difference between ?:, ?! and ?=
- Javascript split regex question
- Javascript replace with reference to matched group?
- Negative lookahead Regular Expression
- Regex exec only returning first match [duplicate]
- Regex to match words with hyphens and/or apostrophes
- javascript regex for special characters
- Split by Caps in Javascript
- Difference between \r and \n
- javascript get function body
- Why are lookbehind assertions not supported in Javascript?
- Remove empty tags using RegEx