Toady Posted August 27, 2007 Share Posted August 27, 2007 Trying to match this, yet having trouble. "\e(.*?)(.*?)(.*?)" ex. "blahblahblah\e4kvblahblahblah" it will match \e4kv That is, only match if first character is \e and the next 3 characters no matter what they are (even newline character). Yet the "." won't match a newline character. Any ideas? www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
weaponx Posted August 27, 2007 Share Posted August 27, 2007 Are you going to show the code you are using? Link to comment Share on other sites More sharing options...
Toady Posted August 27, 2007 Author Share Posted August 27, 2007 ? No need to show code... I just want to match a string using regexp. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Toady Posted August 27, 2007 Author Share Posted August 27, 2007 Nvm, I figured it out. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
weaponx Posted August 27, 2007 Share Posted August 27, 2007 The first thing I noticed was that you needed to escape your slash \\e Link to comment Share on other sites More sharing options...
jpm Posted August 27, 2007 Share Posted August 27, 2007 Nvm, I figured it out.please share what you find? in this area that can help newbies Link to comment Share on other sites More sharing options...
weaponx Posted August 27, 2007 Share Posted August 27, 2007 He pulled a Pauly Shore in Son in Law (quoted directly from the script): Error. Error. Error. Error. - Error. - [ Typing ] - [ Beeping ] - See that ? - [ Computer ] Loading. - Ta-da ! lt's gone. How'd you do it ? Your PC got harshed, right, 'cause your system heaps at the wrong parameter. So l toasted the dated directory, tweaked the P-RAM... and reglazed your subroutine. Link to comment Share on other sites More sharing options...
Toady Posted August 27, 2007 Author Share Posted August 27, 2007 \e... fixed it. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Xenobiologist Posted August 27, 2007 Share Posted August 27, 2007 \e... fixed it. HI, Global $str = '"blahblahblah\e4kvblahblahblah"' $found = StringRegExp($str, '(?s)\\e...', 3) MsgBox(0, "", $found[0]) 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...
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