Availability
$WBRXE is available for use with all WBSP commands.
Syntax
$WBRXE{source|pattern|arrayname|global|ignorecase|showvar}
$WBRXE[source|pattern|arrayname|global|ignorecase|showvar]
Parameters
sourcetext - text on which to perform the search
pattern - regular expressions pattern
arrayname - the name of the array where elements will be stored and prefix for array where positions will be stored (arrayname_pos).
global - optional parameter - a True/False value that indicates if a pattern should match all occurrences in an entire
sourcetext or just the first one
ignorecase - optional parameter - a True/False value that indicates if a pattern search is case-sensitive or not
showvar - optional parameter - if set to true (T,ON,1) WhizBase will show the last index (length-1) of resulting array
Returns
Number of elements in resulting array if showvar parameter is set to true, otherwise it returns nothing, just creates the array.
Example
After running this example, the resulting page in browser, may look like this: