The 360Works Patterns plugin has been updated to version 1.6, this release includes multiline regular expression support, which means you can use the ^ and $ operators in your regular expression patterns.

So for example, to filter a return-separated list to only contain values containing numeric data, use the following:

regexMatchAll(text ; “^.*[0-9].*$”);

If the value of text is

one
two
thr3e
three
four
f1ve
s1x
se7en
seven
eight
nine
ten

The result would be

thr3e
f1ve
s1x
se7en

Sure is a lot simpler than a filemaker looping script or recursive function! Find out more at http://360works.com/regular-expressions-plugin/