e2e4au 0 Posted May 13, 2005 I am having trouble finding a solution. I need to find "(" ")" within a string and return what ever is placed in between the parenthesis Thanks in advance Share this post Link to post Share on other sites
GaryFrost 18 Posted May 13, 2005 (edited) something along this line $string = "this is a test (this is only a test), and only another test" $start = StringInStr($string,"(") + 1 $end = StringInStr($string,")") $result = StringMid($string, $start , $end - $start) MsgBox(0,"Result",$result) Edited May 13, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Share this post Link to post Share on other sites
e2e4au 0 Posted May 13, 2005 something along this line$string = "this is a test (this is only a test), and only another test" $start = StringInStr($string,"(") + 1 $end = StringInStr($string,")") $result = StringMid($string, $start , $end - $start)<{POST_SNAPBACK}>I must have looked through the String function list a dozen times and missed thatStringInStr - Many thanks. Share this post Link to post Share on other sites