Regex tester
Pattern
Input
` OK
text
text-text
text text
` NOT OK
text--text
text  text
text- text
text -text
 text
-text
text-
text 
Options
Replacement
Click the context tab to see replacements.
3 matches found in about 6 milliseconds.
IndexPositionMatched String
06text
112text-text
223text text
` OK
​texttext-texttext text
​` NOT OK
​text--text
​text  text
​text- text
​text -text
​ text
​-text
​text-
​text 
  1. ` OK
  2. whitespace
  3. whitespace

  4. ` NOT OK
    text--text
    text text
    text- text
    text -text
    text
    -text
    text-
    text