![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed string manipulation | speedieB | Shell Programming and Scripting | 4 | 11-23-2008 08:27 PM |
| string manipulation | james6 | UNIX for Dummies Questions & Answers | 5 | 06-03-2008 10:05 AM |
| string manipulation | Cactus Jack | Shell Programming and Scripting | 9 | 02-14-2008 01:14 PM |
| string manipulation | hai1973 | Shell Programming and Scripting | 13 | 08-20-2007 11:27 AM |
| awk string manipulation | zoo591 | Shell Programming and Scripting | 2 | 08-09-2006 12:13 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
string manipulation in C
Hi all,
i have the following string as input : "<iframe src="http://abcdef.com/asd/aaa/awerftya0480000008ave/direct;wi.120;hi.600/01?page=" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="120" height="600"> <script language="JavaScript" type="text/javascript"> document.write('<a href="http://abcdefr.com/c/d/odmfndfdin000008ave/direct;wi.120;hi.600/01/" target="_blank"><img src="http://ssdfcreo.com/fed/up/asdasd58s5480000008ave/direct;wi.120;hi.600/01/"/></a>'); </script><noscript><a href="http://asedfr.com/bbb/cdf/sdfdf222200008ave/direct;wi.120;hi.600/01/" target="_blank"><img border="0" src="http://asd.com/asdas/ssd/asdeffee000008ave/direct;wi.120;hi.600/01/" /></a></noscript></iframe>" also some more lenghty strings i need to write then into files. for that i need to reaplce " to \" in this string . please help me how can i replace so using a C program. thanks in advance, Trinath somanchi, Hyderabad. |
|
||||
|
There is no such build in function avaliable in C.
Your requirement is also not clear to me what do you want whether you want to replace "/" or "\". In C you can write a regular expression to replace the metacharacter using regexp function. Read the man page of "regexp" Rajesh |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|