Regex to collect between two characters
- Sean O'Shea
- Jun 29, 2021
- 1 min read
A simple regular expression:
<.*?>
. . . will find any characters between the less than and greater than symbols or any other 2 characters placed before and after ’.*?’
As shown in this example, this search can be used to select (or remove) the display names in a list of email addresses.
