User Tools

Site Tools


syntax:functions:keepbetween

Differences

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

Link to this comparison view

syntax:functions:keepbetween [2016/06/08 04:13] (current)
dmitry created
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: 2016/06/08 04:13 by dmitry