This would match on all you have provided, the . meaning any character 
including a space {0,1} means min of 0 max of 1

(206.{0,1}888.{0,1}2083)

If you wanted to use detect O as well as the 0 [o0] also you could use the ?i: 
meaning case insensitive:

(?i:2[o0]6.{0,1}888.{0,1}2[o0]83)

David B

----------------------------------------
From: Matt <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2007 4:08 PM
To: [email protected]
Subject: Re: [Declude.JunkMail] phone regex/pcre help 

Scott,

The following should do the same.  Note that I do not know if Declude
requires the whole match to be placed in parenthesis.

    2[0Oo]6[\s\r\n\-\.]*888[\s\r\n\-\.]*2[0Oo]83

Matt

Scott Fisher wrote:

  I'm looking to replace
these lines with a pcre but it
doesn't seem to be working. Any suggestions? 
    
  BODY 175 CONTAINS 206
888-2083 
  BODY 175 CONTAINS
206.8882083 
  BODY 175 CONTAINS
2068882083 
  BODY 175 CONTAINS
206-8882083 
  BODY 175 CONTAINS 206
8882083 
    
  BODY              
175       PCRE              
(?i:[\(\{]?2[0o]6[\)\}]?{\-\_\.\s}?888{\-\_\.\s}?2[0o]83) 
    
  Scott Fisher 
  Dir of IT 
  Farm Progress Companies 
  191 S Gary Ave 
  Carol Stream ,  IL   60188 
  Tel: 630-462-2323 
    
  This
email message,
including any attachments, is for the sole use of the intended
recipient(s) and
may contain confidential and privileged information. Any unauthorized
review,
use, disclosure or distribution is prohibited. If you are not the
intended
recipient, please contact the sender by reply email and destroy all
copies of
the original message. Although Farm Progress Companies has taken
reasonable
precautions to ensure no viruses are present in this email, the company
cannot
accept responsibility for any loss or damage arising from the use of
this email
or attachments. 
    

---

This E-mail came from the Declude.JunkMail mailing list. To

unsubscribe, just send an E-mail to [EMAIL PROTECTED], and

type "unsubscribe Declude.JunkMail". The archives can be found

at http://www.mail-archive.com.

---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.



---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to