Hello.
How can i removed double quotes ( " ) in a string using replaceAll function?
Thanks
Problem removing double quotes in a string
Moderator: Martin
Re: Problem removing double quotes in a string
Hi,
You can use the function replace to remove double quotes:
or you can use single quotes to make the script more readable since the double quote needs not to be escaped using a backslash:
replaceAll on the other hand is more sophisticated since the second parameter is a regular expression and not a plain string.
Regards,
Martin
You can use the function replace to remove double quotes:
Code: Select all
text= "test\"test";
cleaned_text = replace(text, "\"", "");
Code: Select all
text= "test\"test";
cleaned_text = replace(text, '"', '');
Regards,
Martin
-
- Posts: 33
- Joined: 08 Mar 2013 12:45
Re: Problem removing double quotes in a string
Thanks Martin