I’m trying to create a regular expression to find all lines that contain a specific character for example “a”. Using
^(.+)a
will only render the lines that don’t start with the character “a”, but contain them. Is there a way to express any characters or no characters?
I think the regex
ashould work in most line-by-line matchers.See linepogl’s answer for character-matching the whole line.