Regex Text Editor

Using Regex to find lines that end with an expression

Here is a regular expression to find lines that end in the word ‘ Fetch’. Note the single space before the word Fetch.

^.* Fetch$

To specify that we need an entire line we place what we’re looking for between ^ and $. To match the parts of the line before our regular expression, we use the .* notation.

Leave a Reply

Your email address will not be published. Required fields are marked *