regex “whatever”

If you want to select “Whatever” (word or character), regardless of its length, you can simply use

(.*?)

For example if you want delete all the words between <span> and </span>, as in the following row

many words <span>many other words here</span> other words

you can use

delete <span>(.*?)</span>. 

The result will be:

many words other words

Lascia un commento

Il tuo indirizzo email non sarĂ  pubblicato. I campi obbligatori sono contrassegnati *