DB Replacer

Help with a regex please

8 months 2 days ago #75695

David Boggitt's Avatar David Boggitt

Hi there,

I'm trying to find all code like this:

{mosmap lat='50.80146'|lon='-0.056691'| zoom='14'|zoomType='Small'|zoomNew='0'|mapType='Hybrid'|showMaptype='1'| overview='0'|text='Rockpooling at Rottingdean Beach'|tooltip='Rockpooling at Rottingdean Beach'|marker='0'}

and delete it. I've been using an online regex tester and this seems to work

{mosmap[\s\S]*}

However, it doesn't on DB replacer. I have got the regex box ticked. Could you help please?

Many thanks,

Dave.

8 months 2 days ago #75696

Peter van Westen's Avatar Peter van Westen Admin

Try:

{mosmap .*?}
or:
{mosmap [^}]*}

I recommend this online Regular Expressions tool, as it follows the PHP flavour of Regular Expressions:
www.phpliveregex.com/