Remove the ?
. It is non-greedy matcher.
So use this regex:
[\s\S]*
replace with any string.
Pregunta
I want to replace all sourcecode(and text, everything) in files in some folders. I use Dreamweaver and Notepad ++ I try with this:
Find: ([\s\S]*?)
Replace: Replace everything with this.
Now, the problem is ([\s\S]*?) is not matching "everything" in the every page.I need some help, I bad in using regex.
.* is not working. Try yourself it won't mark the whole page....
Solución
Remove the ?
. It is non-greedy matcher.
So use this regex:
[\s\S]*
replace with any string.