Use the end of line anchor $
:
^abc/$
This ensures that the exact string abc/
will be matched.
More Related Contents:
- Regex lookahead, lookbehind and atomic groups
- How can I validate an email address using a regular expression?
- Regex Last occurrence?
- Regular expression to match string starting with a specific word
- Regular Expression Arabic characters and numbers only
- How to match, but not capture, part of a regex?
- Match linebreaks – \n or \r\n?
- Notepad++ incrementally replace
- How would I import YouTube Likes and Dislikes and a ratio from YouTube onto Google Sheets? [closed]
- What is the complexity of regular expression?
- C++0x regex in GCC
- Regex to get the words after matching string [duplicate]
- MongoDB, performance of query by regular expression on indexed fields
- Find numbers after specific text in a string with RegEx
- Email validation using regular expression in JSF 2 / PrimeFaces
- Regex get domain name from email
- Regular expression for GB based and only numeric phone number
- Can’t escape the backslash in a regular expression?
- Regular Expression for any number greater than 0? [closed]
- Eclipse, regular expression search and replace
- Using sed and grep/egrep to search and replace
- Remove square brackets from a string vector
- regex: find one-digit number
- Regular Expression – How to find a match within a match?
- How to change date format in sed?
- Is there any way to put malicious code into a regular expression?
- Replace all whitespace with a line break/paragraph mark to make a word list
- Why do regex engines allow / automatically attempt matching at the end of the input string?
- How do I turn any regex into an complement of itself without complex hand editing?
- Apache mod_rewrite REDIRECT_STATUS condition causing directory listing