Thursday, 15 April 2010

php - Getting delimiter from a line -


Can someone tell me the best method in PHP to find a non-whitespace delimiter from a given line?

Some examples are:

Ex 1: zone, do, abc@gmail.com, 996655

Ex 2: < Code> abc@gmail.com; the deer; ; 996655 <3: zone # doe # 996655 # abc@gmail.com

Ex 4: Joan Doe 96655 < / Code>

Ex 5: Joan Doe 996655 abc@gmail.com

Ex 6: zone; Doe; ABC @ Gmail Com, 996655;

In the above 4 and 5, it should be returned without a delimiter.

Any help is appreciated.

If email is on the last column, then email it The first letter should be found before (excluding white space)). Once it finds the four, then it should be checked whether any of these is not one-zA-Z0- 9. \ R \ n \ f

     

No comments:

Post a Comment