Escaping double forward slash in actionscript

(imported topic written by Bill.Ehardt)

Is there a way to escape a // in actionscript?

I’m trying to add the following line to a createfile until:

sed -i ‘s/#//g’

but its treating the “//” as a comment.

(imported comment written by Bill.Ehardt)

Then again… if its in a createfile block… would it matter in this instance?

How about if it wasn’t in a createfile block.

(imported comment written by BenKus)

Hmm… Try substituting ‘//’ with ‘{"//"}’

Ben

(imported comment written by SystemAdmin)

Or maybe change the sed delimiter to something else that doesn’t need escaping - like a ‘@’ or ‘|’

(imported comment written by Bill.Ehardt)

Ooh good idea Ben… let me try that.

(imported comment written by Bill.Ehardt)

Oh and cidermark, I’m just trying to move stuff over from a bash script, so I’d like to not change it as much as possible.