giovedì 27 gennaio 2011

OpenOffice and non-greedy regex

Today I discovered with a mix of horror and microsoft-feeling that OpenOffice 3.2 has a reduced version of regex and that therefore the ? don't produces non-greedy regex expressions...

Here seems to be a workaround

Find

<([:alpha:]+)[^>]*>([^<]*)


Replace:

$2

Nessun commento:

Posta un commento