in reply to Escape $ inside quotes only
I got a question on chatterbox, but I don't know how to chatter yet (sorry 'bout that). Anyhow, to clarify, if a solution passes the example test data above, it is probably ok. If $ occurs inside quoted string, it is to be replaced by \$ unilaterally; \ is only treated specially inside a quoted string (and only then to escape "). Sorry if that makes it too easy. :-)
|
|---|