By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

replace double-quote (" ") character by ` ` and ' '.

P: 2
The text must be output exactly as it was input except that:
the first " in each pair is replaced by two ` characters: `` and
the second " in each pair is replaced by two ' characters: ''.
Oct 17 '17 #1
Share this Question
Share on Google+
4 Replies


Expert 100+
P: 2,398
What is your question?
Oct 17 '17 #2

P: 2
how to replace "" by `` and ' '
Oct 17 '17 #3

Expert 100+
P: 2,398
We won't do your homework for you -- review the Homework Guideline.

What do you have so far?
Oct 20 '17 #4

omerbutt
100+
P: 638
what approach are you using @ikrama , js or php. you can use javascript
Expand|Select|Wrap|Line Numbers
  1. string.replace()
method with a regex to do this .
Oct 22 '17 #5

Post your reply

Sign in to post your reply or Sign up for a free account.