[Contents] [Prev] [Next] [Index] [Report an Error]


jcs:progress()

Syntax

jcs:progress('expression')

Description

Issue a progress message back to the client (CLI) containing the single argument.

Usage Example

<xsl:variable name="ignore" select="jcs:progress('Working...')"/>

jcs:regex()

Syntax

jcs:regex(expression, string)

Description

Return the set of strings matched by the given regular expression. This function requires two arguments, the regular expression and the string to match.

Usage Example

var $pat = "([0-9]+)(:*)([a-z]*)";
var $a = jcs:regex($pat, "123:xyz");
var $b = jcs:regex($pat, "r2d2");
var $c = jcs:regex($pat, "test999!!!");

$a[1] == "123:xyz"    # full string that matches the regex
$a[2] == "123"         # ([0-9]+)
$a[3] == ":"             # (:*)
$a[4] == "xyz"          # ([a-z]*)
$b[1] == "2d"           # full string that matches the regex
$b[2] == "2"            # ([0-9]+)
$b[3] == ""              # (:*)   [empty match]
$b[4] == "d"            # ([a-z]*)
$c[1] == "999"        # full string that matches the regex
$c[2] == "999"        # ([0-9]+)
$c[3] == ""             # (:*)   [empty match]
$c[4] == ""             # ([a-z]*)   [empty match]

[Contents] [Prev] [Next] [Index] [Report an Error]