You are here:  » Scan and Append RegExp All


Scan and Append RegExp All

Submitted by ChrisNBC on Tue, 2019-07-09 12:30 in

Hi David,

Hope all is going well. It's been quite a while since I last posted but I'm working on a new site and am having an issues with the above filter.

The site is based one of my old ones and I have used the above filter in that without issue but just don't seem to be able to make it work in the new site.

What I'm trying to do is scan the record for particular words and then add all the matches (once) to a field named "design".

The words in the regex are in the raw records but for some reason nothing is appended to the "design" field.

The regex is:
/\b(word1|word2|word3)\b/I/g/

Wondered if you might possibly be able to suggest why the filter is not working.

Thanks in advance.

Best regards
Chris

Submitted by support on Tue, 2019-07-09 13:41

Hi Chris,

Have a go with just the following as the regex;

/\b(word1|word2|word3)\b/i

Cheers,
David.
--
PriceTapestry.com

Submitted by ChrisNBC on Tue, 2019-07-09 13:52

Thanks David,

Just changed the regex and it now works.

Best regards
Chris