Reputation: 1990
There seems to be a small confliction of my multi-line usage.. Here is the context
test-test-3
test-1
I'm trying to regex exact match each line, Giving it the test
string and it returns what after -
:
/test-(.*)/i
This would catch 1st which is test-test-3
, I want to catch the literal second line test-1
I'm trying to make an exact match for what I'm looking for from the beginning of the line to its end ( 1 match ), Using ^
and $
is not working, Probably because I'm using multi lines (\n),
I tried this : /^test-(.*)$/i
and /^test-(.*)\n$/i
Which are not valid
Upvotes: 0
Views: 427