SBM ModScript Reference → Programming SBM ModScript → Object Types → Regex → Regex Split() Method
Splits the string into parts using the regular expression as a delineator.
Parameter | Type | Description |
---|---|---|
value |
string |
The string to be searched. |
trim |
bool |
If true, the resulting strings in the Vector will have the whitespace trimmed. |
Type | Description |
---|---|
Vector |
A Vector containing substrings as its elements. |
SBM ModScript version: 11.6.1.
var r = Regex(); r.Compile( "\\d+" ); var v = r.Split( "12ab3d456e78", true ); for ( s : v ) { Ext.WriteStream( s ); }
Result:
ab d e
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.