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]
A new blog on QM coding and automation.

The Macro Hook
#2
What is the regular expression? If it does not contain parts enclosed in (), only [0 ...] can be used, because 1 is for first enclosed part.
#3
ahh...that explains it then.


findrx(value "\b.+@" 0 4 aa)
A new blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)