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.


Next revision
syntax:functions:keepbetween [2016/06/08 00:13] – created dmitry
Line 1: Line 1:
 +====== KeepBetween(text, stringA, stringB) ======
  
 +Returns characters between the first occurrence of //stringA// and the first occurence of //stringB// in //text//. Parameters //stringA// and //stringB// must not be empty.
 +This function is case-sensitive. 
 +
 +^  Example  ^  Result  ^
 +| keepbetween( %%'http://easymorph.com'%%, %%'http://'%%, '.com' )   | easymorph  |
 +| keepbetween('192.168.0.1 "GET /download.html HTTP/1.1"','/', ' ' | download.html  |
 +
 +=== See also ===
 +  * [[syntax:functions:keepafter]]
 +  * [[syntax:functions:keepbefore]]
syntax/functions/keepbetween.txt · Last modified: 2021/08/14 22:11 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki