Hacker News new | past | comments | ask | show | jobs | submit login

  \bdog\w\*



Yup. See my response to the other sibling comment. In particular:

    (\bdog\w*)|(\w*cat\b)
Seems to behave exactly like I want.

https://regex101.com/r/f3uJUE/1




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: