Regex help
-
How can I put backticks around every line with words as well as end the lines with two spaces?
On Reddit.com, using markdown, code must be between two backticks and lines can be separated by adding two spaces at of the end.
-
Try:
“. matches newline” unchecked
find what:^.*\w.*$
replace with:\`$0\`
<=== 2 spaces after 2nd backtick -
Note that in this scenario, leaving the
$
(end of line assertion) works just as well:find what:
^.*\w.*
-
@Alan-Kilborn said in Regex help:
leaving the $
Hmm, for maximum clarity I should have said:
…leaving off the
$
…