User Tools

Site Tools


syntax:functions:keepbetween

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
syntax:functions:keepbetween [2021/08/02 02:06] craigtsyntax:functions:keepbetween [2021/08/02 02:17] – [Examples] craigt
Line 20: Line 20:
  
 //text//, //keep_start//, and //keep_end// are implicitly converted to text values if required. //text//, //keep_start//, and //keep_end// are implicitly converted to text values if required.
 +
 +If //keep_start// is not found within //text//, all text from the start of //text// to //keep_end//.\\
 +If //keep_end// is not found within //text//, all text from the //keep_start// to the end of //text// is returned.\\
 +If neither //keep_start// nor //keep_end// are found within //text//, an (empty) value is returned.
 +
  
 \\  \\ 
Line 26: Line 31:
   keepbetween('192.168.0.1 "GET /download.html HTTP/1.1"', '/', ' ') = download.html   keepbetween('192.168.0.1 "GET /download.html HTTP/1.1"', '/', ' ') = download.html
   keepbetween('Mary Joe Smith', 'Mary ', ' Smith') = 'Joe'   keepbetween('Mary Joe Smith', 'Mary ', ' Smith') = 'Joe'
 +  keepbetween('Mary Joe Smith', 'Mark ', ' Smith') = 'Mary Joe'  //'Mark' not found
 +  keepbetween('Mary Joe Smith', 'Mary ', ' Jones') = 'Joe Smith'  //'Jones' not found
 +  keepbetween('Mary Joe Smith', 'Mark ', ' Jones') = (empty)  //Neither 'Mark' nor 'Jones' are found
 + 
  
 \\  \\ 
syntax/functions/keepbetween.txt · Last modified: 2021/08/14 22:11 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki