Escape Dollar Sign
Posted: Mon Mar 06, 2006 4:57 pm
This is probably a very stupid question, but I can't seem to find an answer. How do I escape a $ within a string?
Example: "Hello$There"
This is correctly being interpreted as the string "Hello" followed by the variable $There. However, I'd like to escape the $ so that I can see if a user has entered any non-alphanumeric characters into a text box - in this case, the $. How is this done?
Example: "Hello$There"
This is correctly being interpreted as the string "Hello" followed by the variable $There. However, I'd like to escape the $ so that I can see if a user has entered any non-alphanumeric characters into a text box - in this case, the $. How is this done?