Brian Dunning's FileMaker Custom Functions

RemoveLinesContaining ( Text ; RedFlag )

It will remove all lines containing the "red flag".

  Be the first to rate this function Log in to vote

Philip Wang   Philip Wang - Show more from this author
106th Street Wheel and Tire

Share on Facebook Share on Twitter

  Sample input:
RemoveLinesContaining ( "this line is banned.&this line is ok.&banned this line too"; "ban" )
  Sample output:
"this line is ok."

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

I use this function to remove all "// " comments in javascripts. This way I can keep the comment and the script will not have problems when feed it into a webview.
Similarly you can put in your own "red flag" to filter out the lines that contains the offensive word. For multiple red flags you need to use a script with loops.
The idea is actually quite simple. When a "red flag" is removed, the line became different than the original, so a FilterValue() function will automatically removes all the different lines.



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: