#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    38
    Rep Power
    3

    Arrow Escape conversion (comma)


    In my program, a comma is used as a separator of strings. If I have a string, say "Hello, world"

    How can I convert the "," character to an escaped character such as "\," or "\c".

    I tried:

    Code:
    myString = myString.replaceAll(",", "\c");
    but to no avail.
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,724
    Rep Power
    348
    but to no avail.
    Please explain what happens and what the problem is.

IMN logo majestic logo threadwatch logo seochat tools logo