Regex Help
| From: | hitek | Date: | Mon, 10 May 2004 22:16:01 +0000 |
| Subject: | Regex Help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185869@lists.php.net to get a copy of this message | ||
Greetings list,
I have been given a list of products, and I need some help building a regular expression to split the category from the sub category.
Example:
CamerasDigital_CannonXLRshot <-Original entry in list
Cameras Digital Cannon XLRshot <-Desired result.
I can use str_replace() for the underscore, but I also want to be able to split on lowercase char followed by an uppercase char.
I have not worked with regular expressions much before, and I just need a push in the right direction.
Thanks in advance,
Keith