Stripping quotes from a string using ASL.

Here's a simple Smarts (IONIX) ASL rule to remove the quotes from a string...

START { .. eol } do {
        x = NOQUOTE("Hello \"Smarts\", how are you?");
        print(x);
}
NOQUOTE(s) {
        delim = "";
        input = s;
        local c;
        local rtn = "";
        rep(
                c: char
                do { if (c != '"') { rtn = rtn . c; } }
        )?
        do { return rtn; }
}
Scroll to Top