I want to find this:
<p> various text and code </p>
...and replace it with completely different text. Atom doesn't seem to have a multi-line RegEx flag. How can I accomplish this?
You can select several occurrences of the same word using ctrl + d repeatedly, or select all the occurrences by typing alt + F3 .
The regular expression (.|\r?\n)*?
is what you're looking for.
Used in the example above, <p>(.|\r?\n)*?</p>
will select all three lines and you can then either replace or delete those lines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With