I have string:
one line
second line
magic line foo
third line
How to match full line with foo only using keyword foo
?
So, I can match foo
using /foo/g
, but I don't know how to match full line.
Thank you for any help.
I have string:
one line
second line
magic line foo
third line
How to match full line with foo only using keyword foo
?
So, I can match foo
using /foo/g
, but I don't know how to match full line.
Thank you for any help.
you can try this:
it will match full line containing foo
Regex101Demo