You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying some search & replace where I wanted to match something only if the line was starting with it, I wanted to use the usual ^ to flag the beginning of the line. The result was a fail of the match wail getting rid of it resulted in fine matching.
I tried to escaping it, guessing that as $ is used for variables, it probably needs some escaping to flag the end of a line the same way, but this didn't work as well.
I guess that ^and $ should somehow be usable to flag beginning and end of the line.
The text was updated successfully, but these errors were encountered:
I ran into the same issue.
Also I noticed that it works as expected on the first line,
so I enabled the multiline flag and it worked as expected afterwards.
E.g. shell history without line numbers:
When trying some search & replace where I wanted to match something only if the line was starting with it, I wanted to use the usual
^
to flag the beginning of the line. The result was a fail of the match wail getting rid of it resulted in fine matching.I tried to escaping it, guessing that as
$
is used for variables, it probably needs some escaping to flag the end of a line the same way, but this didn't work as well.I guess that
^
and$
should somehow be usable to flag beginning and end of the line.The text was updated successfully, but these errors were encountered: