Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Search in files" dialog (regexp, replace)
#14
Holy Guacamole!! Just the trick.... I can now use REGEX to parse the query string and submit word each AND word in the statetment.....get the results using your new functions, then get the common (overlapping) subsets.

To get the individual words, I will use something like this:

Macro Macro55
Code:
Copy      Help
[code]
str Query = "test phrase here";; from input box
str Pattern_1w = "\b\w+?\b"
ARRAY(str) arr_1w
int Total_1w = findrx(Query Pattern_1w 0 4 arr_1w)
out Total_1w
out "[][]"
for _i 0 Total_1w
,out arr_1w[0 _i][/code]

rep 1000
,Thanks Gintaras!!!

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)