Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get text between parentheses
#1
Gint,

I have multiple windows all called;

Long window name1 (shortwindownname1)
Long window name2 (shortwindownname2)
Long window name3 (shortwindownname3)


How can i get specifically the words out from the parentheses when the words in front and the words inside are always different?

Thank you.
#2
Macro Macro1561
Code:
Copy      Help
str s=
;Long window name1 (shortwindownname1)
;Long window name2 (shortwindownname2)
;Long window name3 (shortwindownname3)

str x y
foreach x s
,if(findrx(x "\(([^()]+)\)$" 0 0 y 1)<0) continue
,out y
#3
Thank you Gint, perfect!


Forum Jump:


Users browsing this thread: 1 Guest(s)