Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find Next?
#1
Hi,

I am using find to find a piece of text in my string, however I want to find the location of the second occurance of the text.

eg. String = "This TEXT is just test TEXT"

So I would want to find the location of the second TEXT.

Is there a way to do this?

I tried using..

Code:
Copy      Help
int i = find(description "TEXT")

which found the first TEXT, but cant figure out how to find the second TEXT.
#2
findrx (read help).

Macro Macro4
Code:
Copy      Help
str subject="This TEXT is just test TEXT"
str pattern="TEXT"
int i; ARRAY(CHARRANGE) a
findrx(subject pattern 0 4 a)
for i 0 a.len
,out a[0 i].cpMin
,out a[0 i].cpMax


Forum Jump:


Users browsing this thread: 1 Guest(s)