Brian Dunning's FileMaker Custom Functions

FilterC ( text ; AZaz09etc )

not quite a regex filter, but easier than

  Average rating: 4.1 (38 votes) Log in to vote

ThomasSeidler   ThomasSeidler - Show more from this author
The Good Book Company Ltd
http://www.thegoodbook.co.uk

Share on Facebook Share on Twitter

  Sample input:
FilterC ( "I w@nt som3_F00D" , "azF09_" )
  Sample output:
"wntsom3_F00"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

// FilterC(text; AZaz09etc) - parameters: text - text to be fitlered; AZaz09etc - filter text
// works by expanding AZ, az, 09 where found

I wanted a rapid and regular A-Z, a-z, 0-9 text filter, so I thought for a while, and eventually realised it was simple. So simple it probably doesn't merit being here.

If anyone comes up with a nice elegant solution to the c-y, 3-5 true regex range style that isn't FileMaker native, publish it! ;)

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: