top of page

regex searching for optional strings

Don't miss that with a question mark you can make a search for a string optional in a regular expression search. So, in this example the string in parentheses followed by a question mark:


. . . will find instances of the string 'dog' which are followed by 'wood' or when they occur without this following string.


bottom of page