Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use beginning and end anchors, or flags? #2

Open
trentchristopher opened this issue Jul 25, 2019 · 2 comments
Open

Can't use beginning and end anchors, or flags? #2

trentchristopher opened this issue Jul 25, 2019 · 2 comments

Comments

@trentchristopher
Copy link

I can't seem to get the ^ or $ anchors to work correctly.
I have a text file I want to match something at the beginning of every line, and ^ makes it simple.

They are only matching at the very beginning or very end of the file, not each line.
It seems that we need the "MultiLine" flag set to do this.

I found a workaround to just look for "\r\n" before the matching character I wanted to find, but the figures of regular expressions aren't being fully utilized.

I can't seem to figure out how to set this flag from my script...???
Maybe there can be a way to set flags within the script?

@lhoss
Copy link

lhoss commented Jan 17, 2020

I can't seem to get the ^ or $ anchors to work correctly.

Neither to the anchors work for me (latest version).
Would be nice to support them 👍

@placoderm
Copy link

I would also love to see this. It's a great plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants