Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
to insert a character '
inside a string, you need to split this string into three consecutive substrings (for string concatenation to work): put a closing single quote (thus forming the first string), then an escaped single quote (the second string), then an opening single quote (beginning third line).
i.e. thing's
turns into 'thing'\''s'
.grep -rnw '/home/user/' -e '$_GET['\''s'\'']'
how to escape single quotes
$
in a regular expression, this is the end of the string, square brackets are a character from the set ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question