From: <[EMAIL PROTECTED]>
> Regular Expressions: How can I indicate that the contents of a term
> (user input*) needs to be treated as 'non-operators/control characters'
> (as *word* to match in that exact way)?
> (* Because the term is a user's input I can't escape the control
> characters man
You can escape the control characters manualy ;)
$termWithOptionalBold=str_replace(array('.','\','$'
),array('\.','\\','\$' ), $termWithOptionalBold);
[EMAIL PROTECTED] wrote:
Regular Expressions: How can I indicate that the contents of a term
(user input*) needs to be treated as 'non-
Regular Expressions: How can I indicate that the contents of a term
(user input*) needs to be treated as 'non-operators/control characters'
(as *word* to match in that exact way)?
(* Because the term is a user's input I can't escape the control
characters manually.)
Example:
$result =
preg_rep
3 matches
Mail list logo