replace a string

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
prashanth0626
Forum Newbie
Posts: 2
Joined: Mon Jun 29, 2009 7:13 am

replace a string

Post by prashanth0626 »

hi
i have data like

1,10,8,4,"name","hobby"

in some data in d last word hobby there is a extra "
like dis
1,10,8,4,"name","hobby""
actually dis " come from database....
can i replace dis using regular expression?
so any double quote between dis " " can be replaceD?
User avatar
prometheuzz
Forum Regular
Posts: 779
Joined: Fri Apr 04, 2008 5:51 am

Re: replace a string

Post by prometheuzz »

prashanth0626 wrote:hi
i have data like

1,10,8,4,"name","hobby"

in some data in d last word hobby there is a extra "
like dis
1,10,8,4,"name","hobby""
actually dis " come from database....
can i replace dis using regular expression?
so any double quote between dis " " can be replaceD?
A few things:
- it would be nice to acknowledge the fact you have read your the answer(s) others give you in your threads;
- could you try to use normal English words? By using those annoying SMS-like abbreviations, it makes your post(s) hard to read. Sentences end with a single dot, not an arbitrary number of them, and the start of a sentence begins with a capital;
- lastly, could you perhaps post what you have tried yourself to solve this? BY doing so, others answering your question(s) can then see how much regex you know and base their answer on that.

Thanks.
Last edited by prometheuzz on Tue Jun 30, 2009 7:01 am, edited 1 time in total.
User avatar
prometheuzz
Forum Regular
Posts: 779
Joined: Fri Apr 04, 2008 5:51 am

Re: replace a string

Post by prometheuzz »

--- removed accidental duplicate ---
Post Reply