Brian Dunning's FileMaker Custom Functions

text.between ( _text ; _searchString1 ; _occurrence1 ; _include1.b ; _searchString2 ; _occurrence2 ; _include2.b )

extracts text between two search strings

  Average rating: 4.0 (45 votes) Log in to vote

Fabrice Nordmann   Fabrice Nordmann
1-more-thing
https://www.1-more-thing.com

Share on Facebook Share on Twitter

  Sample input:
Between ("/abc/def/ghi/" ; "/" ; 2 ; 1 ; "/" ; -2 ; 0 )
  Sample output:
/def

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

extracts the middle of a text in between delimiters, based on a search strings and an occurrence numbers
occurrences can be positive (starting from the beginning of the text) or negative (starting from the end)

see also text.before, text.after, and text.betweenNext functions

 

Comments

Robert   Robert, East Hampton
Mar 30, 2015
Not the title at top of page does not include all the parameters

use Between ( text ; searchString1 ; occurrence1 ; include1_1 ; searchString2 ; occurrence2 ; include2_1)

just a Heads Up
 

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.

Under construction. Email me your wish list for improvements.