struggling with regexp

This is a discussion on struggling with regexp within the PHP Language forums, part of the PHP Programming Forums category; im trying to create a regexp that will work on data that is arranged thusly: 92291A , C92291A , 140191A , REM92291A this ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-07-2003
Sticks
 
Posts: n/a
Default struggling with regexp

im trying to create a regexp that will work on data that is arranged thusly:
92291A , C92291A , 140191A , REM92291A

this data comprises of any number of model names with a space, a comma and a
space delimiting them and a space at the start and end of the string.

i wish to be able to remove any one of those elements and still retain the
arrangement of the data and delimiting.

thanks for your help
sticks


Reply With Quote
  #2 (permalink)  
Old 08-07-2003
P'tit Marcel
 
Posts: n/a
Default Re: struggling with regexp

Sticks écrivit:

> im trying to create a regexp that will work on data that is arranged
> thusly:
> 92291A , C92291A , 140191A , REM92291A


no need for a regexp :

explode(' , ' , trim($chaine))

will provide you with an array containing each model name


--
P'tit Marcel
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0