Skip to main content
A regular expression is a pattern which may match a string.
In this example the pattern (land|stan) matches land or stan. So Afghanistan and Finland match but Albania does not match.
(land|stan)
land
stan
test text