marko29 Posted January 11, 2011 Share Posted January 11, 2011 I know its a bit silly and not a real issue but still if you work with alot of "$$" in your strings it might confuse you and scite as well Just in case anyone wants to know about it, again i am not screaming bugg!!! haha Link to comment Share on other sites More sharing options...
GEOSoft Posted January 11, 2011 Share Posted January 11, 2011 It shouldn't confuse anything if it's quoted properly. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
marko29 Posted January 12, 2011 Author Share Posted January 12, 2011 (edited) It shouldn't confuse anything if it's quoted properly.May i ask what is correct way to quote it then? Since i tried with "" and ''Btw nice regex tool, i am happy that you replied Edited January 12, 2011 by marko29 Link to comment Share on other sites More sharing options...
GEOSoft Posted January 12, 2011 Share Posted January 12, 2011 (edited) depends on what you are doing in the string. If you want the double quotes included than wrap the string in single quotes('"$$"'). If you just want $$ as a string then wrap it in either single or double quotes. Scite will read that as a literal string and won't touch it.I should have added this;If you are working with a regular expression and you want to match double-quote$$double-quote, use \x22 instead of the quote. \x27 for single quote match. Edited January 12, 2011 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
jvanegmond Posted January 12, 2011 Share Posted January 12, 2011 There is an option in AutoIt that enables auto-resolving of variables used in strings. AutoItSetOption("ExpandVarStrings", 1) $foo = "Bar" MsgBox(0, "", "Value of $$foo: $foo$")) You can also do things like: $foo = "Bar" MsgBox(0, "", "Value of $foo: " & Eval("foo")) github.com/jvanegmond 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