Moderators big_daddy Posted November 15, 2006 Moderators Share Posted November 15, 2006 I have yet to come to grasps with the new SRE that we are using. This was the working pattern for the old version. (?:\(([:digit:]+)\)) And this is some sample text to work with. (1) Link to comment Share on other sites More sharing options...
Xenobiologist Posted November 15, 2006 Share Posted November 15, 2006 Hi, I'm not used to SRE, but I'd like to give it a try. Could you please explain what is text and what should be the result. Thanks! So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 15, 2006 Moderators Share Posted November 15, 2006 What output where you trying to get Big_Daddy?$s = '(1)' $example = StringRegExp($s, '\(\d*\)', 3) MsgBox(0, '', $example[0])oÝ÷ Ù«¢+Ø(ÀÌØíÌôÌäì ĤÌäì(ÀÌØíáµÁ±ôMÑÉ¥¹IáÀ ÀÌØíÌ°ÌäìÀäÈì ÀäÈí¨¤ÀäÈì¤Ìäì°Ì¤)5Í ½à À°ÌäìÌäì°ÀÌØíáµÁ±lÁtAny of those?I use this as a reference:http://perldoc.perl.org/perlre.html#Regular-Expressions Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 15, 2006 Author Moderators Share Posted November 15, 2006 @Smoke - The first one was close, but I needed it to error if no number was present. I was able to figure that one out on my own. Thank you for the link that one is much more organized than the one I found. This seems to give the results I need. \((\d+)\) Thanks, Bob 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