note 15148 rejected and deleted from function.split by jeroen
| From: | jeroen@php.net | Date: | Wed, 29 Aug 2001 17:28:52 +0000 |
| Subject: | note 15148 rejected and deleted from function.split by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17316@lists.php.net to get a copy of this message | ||
I noticed that when using split on a line such as...
something|something<withthis>
I was spliting on the "pipe" and split was dropping everything past the "less
than" sign. Now I now this has something to do with regular expressions, but honestly not
knowing all THAT much about regex - this was a little daunting to say the least. Perhaps we can get
the dev guys to add an extra parameter for split to allow the treating of all characters as literal
EXCEPT the split character (then again - I wouldn't have to escape the pipe in the split call
if it were applied on both arguments to the function)....
So - I'm off to explode instead - nice, since I really do want to blow something up having
wasted all this time wondering WTH??
A little harsh, but hey - what does a guy do when the language does something weird like that, and
does so extremely quitely. (A warning would have been nice - "Hey dumb coder guy, you're
using incompatible characters for that function in your string", is that so hard??).
Anyway - anyone else out there that was wondering why that was happening to them, now knows...
(: Crow :)