Brian Dunning's FileMaker Custom Functions

PatternCountMulti ( Text ; SearchList )

Searches for any value of a list in a text.

  Average rating: 5.0 (1 vote) Log in to vote

flusheDData   flusheDData - Show more from this author
n/a
http://www.udias.com

Share on Facebook Share on Twitter

  Sample input:
PatternCountMulti ( "The more I type, the more I mistype" ; "theĀ¶more")
  Sample output:
4

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

It works the same as the PatternCount function, but it can search for many patterns separated by carriage returns.

 

Comments

Tjebbe van Tijen   Tjebbe van Tijen, IMP
Oct 5, 2024
very useful...
I did get stuck a bit when using a calculation script stept to construct the SearchTerm parameter
as a non-professional-programmer I did not manage to get the list of search terms [ $code ] with carriage returns to be recognised by this function... till it dawned on me I had to use VALIDATE to the parameter
in my solution that looks like this:
PatternCountMulti ( aray_creat::xBlock_procs;Evaluate ( "\"" & $code & "\""))
and it works like a charm now.
 

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 21 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: