Top "Escaping" questions

Escaping is the process of applying an alternate meaning to a character or set of characters.

How to escape text for regular expression in Java

Does Java have a built-in way to escape arbitrary text so that it can be included in a regular expression? …

java regex escaping
How to escape double quotes in a title attribute

I am trying to use a string that contains double quotes in the title attribute of an anchor. So far …

html escaping quotes
What does the symbol \0 mean in a string-literal?

Consider following code: char str[] = "Hello\0"; What is the length of str array, and with how much 0s it is …

c++ c string escaping string-literals
Escaping single quote in PHP when inserting into MySQL

I have a perplexing issue that I can't seem to comprehend... I have two SQL statements: The first enters information …

php mysql insert escaping
How do I escape double quotes in attributes in an XML String in T-SQL?

Pretty simple question - I have an attribute that I would like to have double quotes in. How do I …

xml tsql escaping
How to print a single backslash?

When I write print('\') or print("\") or print("'\'"), Python doesn't print the backslash \ symbol. Instead it …

python escaping backslash
How to Git stash pop specific stash in 1.8.3?

I just upgraded Git. I'm on Git version 1.8.3. This morning I tried to unstash a change 1 deep in the stack. …

git escaping git-stash
Escape regex special characters in a Python string

Does Python have a function that I can use to escape special characters in a regular expression? For example, I'm "…

python regex string escaping
How to insert a string which contains an "&"

How can I write an insert statement which includes the & character? For example, if I wanted to insert "J&…

sql oracle escaping sqlplus
HtmlSpecialChars equivalent in Javascript?

Apparently, this is harder to find than I thought it would be. And it even is so simple... Is there …

javascript html escaping html-encode