User Tools

Site Tools


en:explodex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:explodex [2016/01/01 22:41]
127.0.0.1 external edit
en:explodex [2020/02/28 10:46] (current)
Line 2: Line 2:
  
 ==== Format ==== ==== Format ====
-string_array_variable$ = **explodex** ( //string_expr// //regex_expr// )+variable = **explodex** ( [[stringexpressions|string_expression]] [[regularexpressions|regular_expression]] )
  
-returns //string_array// that must be assigned to a //string_array_variable$//+returns a [[lists|list]] of strings that must be assigned to a [[variables|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 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.
 ==== Example ==== ==== Example ====
 <code> <code>
Line 55: Line 57:
 ==== History ====  ==== History ==== 
 |0.9.6.56|New to Version| |0.9.6.56|New to Version|
 +|1.99.99.9|Added Regex Capturing| 
 +|1.99.99.55|now allow explode to be used anywhere a list may be used|
en/explodex.1451713260.txt.gz · Last modified: 2020/02/28 10:46 (external edit)