Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search the string in the opposite direction
#1
Hi,

In a multi-line strings, Searches for the location of the specified string
The last matching line, from left to right, is the position of the first matching string
For example, in the following example: abĀ abc bbb abc

Thanks in advance for any advice and help
david

Macro Macro1
Code:
Copy      Help
_s=
;abc
;efg
;hij
;abc
;klm
;ab abc bbb abc
;ccc
int pos=find(_s "abc" 0)
out pos


Messages In This Thread
Search the string in the opposite direction - by Davider - 08-24-2022, 12:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)