Regex new line
-
I have a .txt file with thousands of lines and I'm looking to use Regex to make a New line after this word: href="/
I tried different techniques but didn't succeded
-
anyone?
-
.replace(/href="\//g, "href=\"\/\r\n")
-
@GaG said in Regex new line:
.replace(/href="\//g, "href=\"\/\r\n")
That worked
Do you also know how can I use regex to remove everything after =
Thank you!
-
@andreiem said in Regex new line:
@GaG said in Regex new line:
.replace(/href="\//g, "href=\"\/\r\n")
That worked
Do you also know how can I use regex to remove everything after =
Thank you!
Users would help you more quickly if you attached examples of the general text and what it should look like in the end.