User Tools

Site Tools


syntax:functions:keepbetween
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
syntax:functions:keepbetween [2021/08/02 02:06] craigt
Line 1: Line 1:
 +====== KeepBetween(text, keep_start, keep_end) ======
 +Category:  Text function
 +
 +\\ 
 +=====Description=====
 +This function returns the characters between the first occurrence of //keep_start// and the first occurrence of //keep_end// in //text//.
 +
 +\\ 
 +=====Arguments=====
 +^Argument^Type^Description^
 +|text|Text|The text value to search within for the //after_string// string.|
 +|keep_start|Text (must //not// be empty)|The text string to search for within //text// defining the starting point of the string to be returned\\ (not including this string).|
 +|keep_end|Text (must //not// be empty)|The text string to search for within //text// defining the end point of the string to be returned\\ (not including this string).|
 +
 +**Return value type:** Text
 +
 +\\ 
 +=====Remarks=====
 +This function is case sensitive.
 +
 +//text//, //keep_start//, and //keep_end// are implicitly converted to text values if required.
 +
 +\\ 
 +=====Examples=====
 +  keepbetween('http://easymorph.com', 'http://', '.com' ) = 'easymorph'
 +  keepbetween('192.168.0.1 "GET /download.html HTTP/1.1"', '/', ' ') = download.html
 +  keepbetween('Mary Joe Smith', 'Mary ', ' Smith') = 'Joe'
 +
 +\\ 
 +===== See also =====
 +  * [[syntax:functions:keepafter|KeepAfter(text, after_string)]]
 +  * [[syntax:functions:keepbefore|KeepBefore(text, before_string)]]
 +  * [[syntax:functions:keepchars|KeepChars(text, keep_string)]]
  
syntax/functions/keepbetween.txt · Last modified: 2021/08/14 22:11 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki