mercoledì 22 dicembre 2010

HTML cleanup with regexp and TextMate

to remove all spans: cmd-F, activate regexp, then:

Find: <span.*?>(.+?)<\/span>
Replace: $1


the question marks prevent greedy matching

Nessun commento:

Posta un commento