Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findrx and ARRAY doc problem?
#1
the "Find substring using regular expression" page in the help says this about using arrays and piping regex results to an array.

Quote:If flag 4 (find all) is set and result is array, finds all matches. It creates two-dimensional array. Use dimension 1 to access match and submatches of single instance. Use dimension 2 to access instances.


is that still the same? cuz when i make one, the only way to get the value that the regex gets is to get the index 0 and index 1 is invalid


Code:
Copy      Help
out aa.ndim;;=2
for z 0 aa.len
,out aa[1 z];;Macro62:  invalid index
[/quote]
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)