How Can I do This RegEx Search & Replace?

4 months ago | Glenn (Member)

I need to replace this..

[affmage source="ebay" results="100"]Brass Serial[/affmage]

with

NOTHING (essentially deleting this whole thing)

The problem is everything in the search string is static except where the string "Brass Serial"
is. This is variable.

I tried doing this but it's not valid:
[affmage source="ebay" results="100"]([A-Za-z])[/affmage]

Can you help me do this using the plugin?

Read responses...

Responses

  1. John:

    Posted 3 months ago by Administrator

    You need to escape the special regular expression characters otherwise they will be interpreted as a regular expression

Reply

You must log in to post.

Home | Software | Terms & Conditions | Sitemap | John Godley © 2010