This regular expression can be used to validate that a given string contains only characters in it or extract two words from a given string.
The regular expression to match only words looks like this (including compound words):
True
False
Enter a text in the input above to see the result
Example code in PHP:
True
False
Enter a text in the input above to see the result
True
False
Enter a text in the input above to see the result
Discover UI Bakery – an intuitive visual internal tools builder.