You can use the regex -(.*)
, see live demo
More Related Contents:
- Regular expression [ 1 ( 0 1* 0)* 1 ]* DFA
- Regular expression works on regex101.com, but not on prod
- Non greedy (reluctant) regex matching in sed?
- Regex for quoted string with escaping quotes
- Match everything except for specified strings
- Combine Regexp?
- Escape function for regular expression or LIKE patterns
- how to remove folder name from url using htaccess
- Regex match one of two words
- Create new column in dataframe based on partial string matching other column
- How to exclude a specific string constant? [duplicate]
- What regex can match sequences of the same character?
- What does ?! mean?
- What do comma separated numbers in curly braces at the end of a regex mean?
- Remove all text between two brackets
- Extract substring using regexp in plain bash
- Regex look behind in VS Code?
- MongoDB reverse regex
- Simple AlphaNumeric Regex (single spacing) without Catastrophic Backtracking
- Select rows from data.frame ending with a specific character string in R
- What’s wrong with my lookahead regex in GNU sed?
- apache mod_rewrite one rule for any number of possibilities
- Splitting String in VBA using RegEx
- Regular expression to remove one parameter from query string
- Difference between regular expression modifiers (or flags) ‘m’ and ‘s’?
- Splitting a string on the first space
- Regular Expression Word Boundary and Special Characters
- Swift 3 – How do I extract captured groups in regular expressions?
- hgignore: help ignoring all files but certain ones
- Guide on how to use regex in Nginx location block section?