Brekeke SIP Server Wiki

$str.trim

Get the trimmed string.
Strip whitespace from the beginning and end of the specified string

 

Syntax:
$str.trim( string )
Returns:

the trimmed string.

 

Version Since:

1.0

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$str.trim( "sip:user@domain" )= (.+)

Get the trimmed string. It will be “sip:user@domain”.

Yes No
Suggest Edit