02-22-2015, 07:23 PM
Is it possible with this code to retrieve "DEF" from the below 3 cases (in each case the caret is at a different position, caret is represented by a pipe symbol.)
I tried to use regex wordboundry \b but I could not get the syntax right:
Macro Macro35
I put the caret at the 3 positions (left of string, in the string and on the right of the string) and then run the above code.
But it does not retrieve "DEF".
(the goal is to get the text at caret position)
I tried to use regex wordboundry \b but I could not get the syntax right:
Macro Macro35
2
;test in the below line (retrieve "DEF")
;ABC DEF GHI
str rgx="\b"
str s
s=SelectTextRightUntil(rgx 16|2)
out s
s=SelectTextLeftUntil(rgx 16|2)
out sI put the caret at the 3 positions (left of string, in the string and on the right of the string) and then run the above code.
But it does not retrieve "DEF".
(the goal is to get the text at caret position)
