You are here:  » Can't get "Drop Record If Not RegExp" filter to work

Support Forum



Can't get "Drop Record If Not RegExp" filter to work

Submitted by jamiec on Mon, 2009-08-17 14:38 in

Hi,
I have a feed which I would like to filter to only include a certain type of product. I figure the best way of doing this is with a regular expression filter.

I tried adding the following regex to a filter:

/dvd/i

DVD being the word I want to match. However when I try and import, nothing is imported, despite there being hundreds of products which match the pattern.

Am I doing something wrong?!

Cheers
J

Submitted by support on Mon, 2009-08-17 14:51

Hi Jamie,

The filter currently uses POSIX regular expressions, but the PHP function used by this feature is being depreciated; so I'll look to update the distribution with the PERL compatible regexp functions.

In the mean time, try using the following version as your filter configuration value:

(DVD|dvd|Dvd)

Hope this helps.

David.

Submitted by jamiec on Mon, 2009-08-17 15:11

thanks for the prompt reply! All sorted.