![]() |
|
|
| Subject:
Why preg_split works only if the char # before the delimiter is 21 or less?
Category: Computers > Programming Asked by: todddickerson-ga List Price: $2.00 |
Posted:
29 Oct 2006 21:07 PST
Expires: 28 Nov 2006 21:07 PST Question ID: 778331 |
Why preg_split works only if the char # before the delimiter is 21 or less?
example php code:
=============
$right = "{Hello Im very aaaaaa {cool|not cool}}";
print $right."<br>";
$pattern = '/({(?:[^{}]+(?:"[^"]*"|\'[^\']*\')?)+})/';
$snip_array = preg_split($pattern, $right, -1, PREG_SPLIT_DELIM_CAPTURE);
print_r($snip_array);
============
If I change $right = "{Hello Im very aaaaa {cool|not cool}}"; the
above code works correctly. Is there a solution to this? |
|
| There is no answer at this time. |
|
| There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |