https://regex101.com/r/ZNQa9X/1
The generated regex is the same as
(\bdog\b)|(\bcat\b)
https://regex101.com/r/vTtEU4/1I’m currently trying to figure out how to match a word starting with dog without using
\bdog.*
because .*
would proceed to eat the rest of the line.So I was thinking I could say
\bdog[^\b]*
But that doesn’t work, it also ends up eating the rest of the line as well.