Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
en:explodex [2016/01/02 16:14] admin [Format] |
en:explodex [2016/08/12 21:14] admin |
| |
==== Format ==== | ==== Format ==== |
variable = **explodex** ( //string_expr// , //regex_expr// ) | variable = **explodex** ( [[stringexpressions|string_expression]] , [[regularexpressions|regular_expression] ) |
| |
returns //array// of strings that must be assigned to a //variable// | returns a [[lists|list]] of strings that must be assigned to a //variable// or used wherever a list may be used. |
| |
==== Description ==== | ==== Description ==== |
Splits up //string_expr// into substrings wherever the regular expression //regex_expr// occurs. Substrings are stored in either the string or numeric array defined in the assignment statement. The array will be re-dimensioned to the exact size to store all of the substrings. Unlike ExPLODE, EXPLODEX allows ignoring specific variations (case sentive, spelling etc), see example below ”[Aa][Nn][Dd]”. | Splits up [[stringexpressions|string_expression]] into substrings wherever the regular expression [[regularexpressions|regular_expression] occurs. Substrings are stored in either the string or numeric array defined in the assignment statement. The array will be re-dimensioned to the exact size to store all of the substrings. Unlike ExPLODE, EXPLODEX allows ignoring specific variations (case sentive, spelling etc), see example below ”[Aa][Nn][Dd]”. |
| |
If the regular expression includes capturing groups, using parenthesis, then the array returned will contain the entire string matched by the regular expression in index 0 and each of the captured groups in subsequent elements. | If the regular expression includes capturing groups, using parenthesis, then the array returned will contain the entire string matched by the regular expression in index 0 and each of the captured groups in subsequent elements. |
|0.9.6.56|New to Version| | |0.9.6.56|New to Version| |
|1.99.99.9|Added Regex Capturing| | |1.99.99.9|Added Regex Capturing| |
| |1.99.99.55|now allow explode to be used anywhere a list may be used| |