Vear 0 Posted July 3, 2012 Heya, one question =)Im currently workin with RegExpr in AutoIt, but im curr stuck with a problem.My curr regexp is: <(?i)string>(.*\r\n)*</(?i)string>But it doesnt match this:Any ideas? im exploding xD Share this post Link to post Share on other sites
JohnQSmith 40 Posted July 3, 2012 Game automation is against the rules, unless I'm misinterpreting the wording again. Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Share this post Link to post Share on other sites
Bert 1,427 Posted July 3, 2012 (edited) post removed - game thread Edited July 3, 2012 by scullion The Vollatran project _____ I'm famous My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
zpanderson 0 Posted July 3, 2012 Check out the program 'expresso' it allows you to try out reg ex against text to better debug. Share this post Link to post Share on other sites
jdelaney 313 Posted July 3, 2012 (edited) I like using XMLDOM for that $oXML=ObjCreate("Microsoft.XMLDOM") $stest = '<string><string2 name="racecar" test="test2"><type title="value">value1</type><type title="value">value2</type></string2></string>' $oXML.LoadXML($stest) ;ConsoleWrite ( $oXML.xml & @CRLF) $result = $oXML.selectNodes('//string') For $Node In $result ConsoleWrite ( $Node.xml & @CRLF) Next Edited July 3, 2012 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Share this post Link to post Share on other sites
JohnQSmith 40 Posted July 3, 2012 $oXML=ObjCreate("Microsoft.XMLDOM") $stest = '<string><string2 name="racecar" test="test2"><type title="value">value1</type><type title="value">value2</type></string2></string>' Wow... step on your dick much? Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Share this post Link to post Share on other sites
jdelaney 313 Posted July 3, 2012 I'm not following, the xmldom is much easier than the regexp for xml...and it formats perfectly, removes all the extraneous text, and removes all the commented out nodes IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Share this post Link to post Share on other sites
Vear 0 Posted July 3, 2012 Tyvm, works perfectly =) Now i can translate the game (: Share this post Link to post Share on other sites
Valik 478 Posted July 3, 2012 jdelaney, it was very clearly pointed out this was a thread that violates our rules. If I find you helping people break the forum rules in the future you will get some time away from the forum to review the rules until you understand them. Thread locked. Share this post Link to post Share on other sites