Jump to content


Character Recognition

  • Please log in to reply
1 reply to this topic

#1 theblain

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 21 August 2006 - 07:53 PM

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.


#2 Caesar

  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 21 August 2006 - 08:02 PM

You need to look into PHP regular expressions.

PHP Ninja

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users