e2e4au Posted May 13, 2005 Share 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted May 13, 2005 Share 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. Link to comment Share on other sites More sharing options...
e2e4au Posted May 13, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now