View Single Post
Old 01-19-2011, 03:48 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
find replace - does it auto-fix closing tqags ???

was having a frustrating time with find-replace regex last night

- I swear that some times it just sulks and claims to not find any instances of perfectly good expressions, or waits until you re-click the code view window before searching properly -

anyway I gave up building a regex that would alter pairs of opening & closing tags and figured I'd fix them in 2 passes
- so I did something like replace all "<h4" with "<h2", intending to then do replace "</h4" with "</h2> as a 2nd pass - but somehow all of the end pairs had miraculously already fixed themselves

was I seeing things, was this the tidy function helping out, or what ?

if tag pairs can be replaced justt be replacing the opening tag , that would be good to know as the regex building then becomes MUCH simpler!
cybmole is offline   Reply With Quote