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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |