areknawo / Rex

Your RegEx companion.

Home Page:https://areknawo.github.io/Rex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing start of line quantifier

Brettm12345 opened this issue · comments

I should be able to do

new Matcher().startOfLine().find('import')

I think the begin() with multiline flag applied (m()) method is what you're looking for.

new Matcher().begin().find("import").m()