Jump to content

Archived

This topic is now archived and is closed to further replies.

theblain

Character Recognition

Recommended Posts

Here's what I'm trying to do;
I have a form that includes a large input box where you can copy and paste email messages.  What i'm WANTING to do is, when a user pastes the email into the input box, PHP will find character sequences like 555-2484 as ###-#### and know it's a phone number and paste that phone number in the "Phone" field.  More importatnly, I'm looking to extract container numbers out of the email which are always L=Letter N=Number: LLLLNNNNNNN

Any pointing in the right direction would be appreciated.

-theblain

Share this post


Link to post
Share on other sites
You need to look into PHP regular expressions.

http://www.php.net

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.