Answer the question
In order to leave comments, you need to log in
Php + regExp, how?
We have a simple example (in php):
$text='\\';
preg_match_all('/\\\\/',$text,$item);
print_r($item);
Array
(
[0] => Array
(
[0] => \
)
)
Answer the question
In order to leave comments, you need to log in
How are you going to get 2 slashes if there is only one in the input?
This is how you get two:
$text='\\\\';
preg_match_all('/\\\\+/',$text,$item);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question