Words match
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.
Simple word match
The regular expression to match only words looks like this (including compound words):
Test it!
This is some text inside of a div block.
True
False
Enter a text in the input above to see the result
Example code in PHP:
Test it!
This is some text inside of a div block.
True
False
Enter a text in the input above to see the result
Test it!
This is some text inside of a div block.
True
False
Enter a text in the input above to see the result