Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findrx question
#1
Hi there,

When i'm using this code:

variables
str s1
ARRAY(str) a
activate notepad, select all, get all text into s1
act "Kladblok"
key Ca
s1.getsel
use regular expression to find and extract text between . and !
if(findrx(s1 "\$(.+?)!" 0 4 a)<0) ret ;;exit if not found
a now contains all instances of text between . and !
activate QM and display a
act _hwndqm
int i
for i 0 a.len
out a[1 i]
mes a[1 i]

and the text is devided in multiple lines nothing is selected and i'm getting nothing back. What is wrong with it or am i missing something. It is ment to select a piece of text of several lines and copy this.

TIA


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)