Backslash in printf Programming Software Development by vincenzorm117 … and I have been trying to use some of the backslash commands such as: \b = backspace \r = moves the cursor to… seem to work on xCode. 1. Are these the right backslash commands or are my definitions incorrect? If they are why… Re: Backslash in printf Programming Software Development by nezachem The program will just emit a literal encoded by a backslash escape. It is up to the terminal to interpret it. Re: backslash problem Programming Software Development by triumphost Double backslash in strings is equivalent to a single forward slash if your talking about paths. Re: backslash on link element Digital Media UI / UX Design by gentlemedia If you use a (X)HTML strict doctype then you will have to use a closing backslash, but with HTML5 doctype for example you can use the second as well. Re: Yet another backslash problem... Programming Software Development by woooee As far as I can tell, both of these options work. [CODE]x=16 backslash = chr(92) part1 = '\x03\xa2' part2 = hex(x)[1:] command2 = "%s%s%s" % (part1, backslash, part2) command3 = part1 + backslash + part2 [/CODE] Re: Yet another backslash problem... Programming Software Development by ktsangop … can tell, both of these options work. [CODE]x=16 backslash = chr(92) part1 = '\x03\xa2' part2 = hex(x)[1:] command2… = "%s%s%s" % (part1, backslash, part2) command3 = part1 + backslash + part2 [/CODE][/QUOTE] None of them worked... still the… Replace one backslash with two Programming Web Development by web3 How to replace one backslash with two? This code doesn't work: [CODE] $msg = str_replace("\","\\",$msg); [/CODE] PHP will two backslashes insert into database as one. If is there one backslash it will return a parse error. Re: Replace one backslash with two Programming Web Development by kireol [QUOTE=web3;1092688]How to replace one backslash with two? This code doesn't work: [CODE] $msg = str_replace("\","\\",$msg); [/CODE] PHP will two backslashes insert into database as one. If is there one backslash it will return a parse error.[/QUOTE] change your double quotes " to single ticks ' Yet another backslash problem... Programming Software Development by ktsangop …\\x10' Which is incorrect because the boards understands the extra backslash as : hexadecimal (5C) = decimal (92) So the wrong number (92…) is sent. Is there ANY way to add a single backslash to this string concatenation?? Thanks in advance! remove backslash Programming Web Development by seunweb This script adds a backslash to content added to description when saved. single quote becomes \' …while double quote becomes \" I want to remove the backslash. i have tried stripslashes but still couldn't get it… Re: Replace one backslash with two Programming Web Development by kireol [CODE=php] $msg = str_replace('\','\\',$msg); [/CODE] with this? alternatively since you are escape your backslash you could use 4 \ on the second one. Dreamweaver backslash problem Community Center Say Hello! by fatsandrew7 … time now on how to stop Dreamweaver from adding a backslash before the word "images" when I place a… login (\)backslash error when inputted Programming Web Development by venus_me11 i try to validate my login page.. all special characters are not accepted but when i input a backslash ( \ ), an error message appears.. error in executing query.. please help how to validate it... tnx Removing backslash from XML- any ideas? Programming Web Development by NuGG …;_tag_1" ); $x=$x->item(0)->nodeValue; //remove backslash $xx=trim(preg_replace('/\+/', ' ', $x)); //show result echo $xx; echo "… Re: Removing backslash from XML- any ideas? Programming Web Development by NuGG …;_tag_1" ); $x=$x->item(0)->nodeValue; //remove backslash and show result echo preg_replace('/\\+/', '', $x) echo "<br… How to to strip backslash from URL Programming Web Development by nigelsponge … has an apostrophe in it. Then the title has a backslash in front of the apostrophe (probably to escape that apostrophe… Truncation of file path at last backslash. Programming Web Development by GeoffC … displays only the file name. Everything up to the last backslash is removed. Why???? getting error of backslash in mysql query Programming Web Development by harsha.netpem … * FROM upload where cas_no='\'104-55-2\''** Why I get backslash in my query ? Otherwise query is ok. and URL value… Re: getting error of backslash in mysql query Programming Web Development by harsha.netpem hello, I am using this also but still not getting the output. And I have also checked the value of $_GET['cas_no'] i.e print_r($_GET['cas_no']) but i get again backslash i.e \'104-55-2\'. I think there is no error in where query but I am still not getting where is the error in this script? Re: getting error of backslash in mysql query Programming Web Development by diafol The above will give an error, you must use a double backslash: $c_no=str_ireplace("\\","",$str); Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson … one line.[/QUOTE] [indent] They are three lines because the backslash is not the last character on the line; that's… a carriage return. If the backslash were the last character on the line, grep would still… it as three lines. Only the shell will interpret the backslash as a continuation character, and it would read the file… Re: Replacing backslash '\' in a windows path Programming Software Development by slate … string: 'C:\Process new\RF\test.dat' Has only one backslash. The other karakters are escape sequenses. Try to print it… r'C:\Process new\RF\test.dat' and replace the backslash on that. [URL="http://pythonconquerstheuniverse.wordpress.com/2008/06… Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson [QUOTE=kneiel;993863] [code] grep '\\$' Temp1 [/code] it does not work. [/QUOTE] [indent] It works for me. Did you create the file on a Windows box? If so, there will be a carriage return before the newline, and the backslash will therefore not be the last character on the line. [/indent] Re: Grep : Trying to match a trailing backslash (\) Programming Software Development by cfajohnson [QUOTE=kneiel;993973]Thanks for the input. I am using a win ox (cygwin) . What could be the possible workaround ?[/QUOTE] [indent] Search for what is actually there: a backslash followed by a carriage return. [/indent] backslash problem Programming Software Development by James19142 i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes. QString AddDoubleSlashtoPath(QString Path){ QStringList splitup=Path.split("//") ;/*supposed to be a … Re: backslash problem Programming Software Development by deceptikon > newString.append("//");/*where I actually need doubleslashes */ Do the same thing twice: newString.append("////");/*where I actually need doubleslashes */ The double slash in string literals is an escaping measure because a single slash represents the starter for an escape character. Thus the escape character for a … Re: backslash problem Programming Software Development by James19142 wow thx, that solves some other problems i been having too backslash on link element Digital Media UI / UX Design by Stacy_2 does the link element have a closing back slash or not i.e is it (1) <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> or (2) <link href="css/style.css" rel="stylesheet" type="text/css" media="all" > Re: backslash on link element Digital Media UI / UX Design by Traevel *forward slash Re: backslash on link element Digital Media UI / UX Design by Stacy_2 coz most sites including daniweb dont include the back slash, so was a bit confused on what is which. so with backlash it is. wish they had documented it in the html specification