Re: problem with regexp

2003-09-10 Thread Schamil Wackenhut
* Rui Duarte wrote:

> "\\d{11}([A-HJ-Z][A-Z]|[A-Z][A-SU-Z])"

Alternatively you can use negative lookahead:
\d{11}(?!IT)

-- 
bashian roulette: 
$ ((RANDOM%6)) || rm -rf ~


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with regexp

2003-09-10 Thread Celestino Bellone
Yes, it's rigtht!!! :)

Thanks a lot

Celestino
  - Original Message - 
  From: Rui Duarte 
  To: Regexp Users List 
  Sent: Wednesday, September 10, 2003 11:25 AM
  Subject: RE: problem with regexp


  Of course ...
  And this one ?
  "\\d{11}([A-HJ-Z][A-Z]|[A-Z][A-SU-Z])"
  Rui

  -Original Message-
  From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
  Sent: quarta-feira, 10 de Setembro de 2003 10:07
  To: Regexp Users List
  Subject: Re: problem with regexp


  this expression is valid for strings that NOT contains I or T, like
  this: 1372992KK

  but I'm looking for a regExp that matches expression like this:

  1372992II
  or
  1372992TT
  or
  1372992KK

  and NOT
  1372992IT

  thanks for your help

  Celestino

- Original Message - 
From: Rui Duarte 
To: Regexp Users List ; Celestino Bellone 
Sent: Wednesday, September 10, 2003 11:01 AM
Subject: RE: problem with regexp


Hi.

"\d{11}[A-HJ-Z][A-SU-Z]" does what you want ?

Rui Duarte

-Original Message-
From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 10 de Setembro de 2003 9:40
To: [EMAIL PROTECTED]
Subject: problem with regexp


Hi everybody,
I'm looking for a regular expression that matches strings like this:

12345678910AA

for the 'numeric block' the best way to write this is: 
\d{11}

but, for the 'alphabetical block' there's a 'little'(?) problem...
  this
block must not be equals to IT, 
so that the regExp must matches 111II or 111NT but not
111IT

there are someone that can help me to solve this problem?

thanks a lot
Celestino


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with regexp

2003-09-10 Thread Rui Duarte
Of course ...
And this one ?
"\\d{11}([A-HJ-Z][A-Z]|[A-Z][A-SU-Z])"
Rui

-Original Message-
From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 10 de Setembro de 2003 10:07
To: Regexp Users List
Subject: Re: problem with regexp


this expression is valid for strings that NOT contains I or T, like
this: 1372992KK

but I'm looking for a regExp that matches expression like this:

1372992II
or
1372992TT
or
1372992KK

and NOT
1372992IT

thanks for your help

Celestino

  - Original Message - 
  From: Rui Duarte 
  To: Regexp Users List ; Celestino Bellone 
  Sent: Wednesday, September 10, 2003 11:01 AM
  Subject: RE: problem with regexp


  Hi.

  "\d{11}[A-HJ-Z][A-SU-Z]" does what you want ?

  Rui Duarte

  -Original Message-
  From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
  Sent: quarta-feira, 10 de Setembro de 2003 9:40
  To: [EMAIL PROTECTED]
  Subject: problem with regexp


  Hi everybody,
  I'm looking for a regular expression that matches strings like this:

  12345678910AA

  for the 'numeric block' the best way to write this is: 
  \d{11}

  but, for the 'alphabetical block' there's a 'little'(?) problem...
this
  block must not be equals to IT, 
  so that the regExp must matches 111II or 111NT but not
  111IT

  there are someone that can help me to solve this problem?

  thanks a lot
  Celestino


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with regexp

2003-09-10 Thread Celestino Bellone
this expression is valid for strings that NOT contains I or T, like this:
1372992KK

but I'm looking for a regExp that matches expression like this:

1372992II
or
1372992TT
or
1372992KK

and NOT
1372992IT

thanks for your help

Celestino

  - Original Message - 
  From: Rui Duarte 
  To: Regexp Users List ; Celestino Bellone 
  Sent: Wednesday, September 10, 2003 11:01 AM
  Subject: RE: problem with regexp


  Hi.

  "\d{11}[A-HJ-Z][A-SU-Z]" does what you want ?

  Rui Duarte

  -Original Message-
  From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
  Sent: quarta-feira, 10 de Setembro de 2003 9:40
  To: [EMAIL PROTECTED]
  Subject: problem with regexp


  Hi everybody,
  I'm looking for a regular expression that matches strings like this:

  12345678910AA

  for the 'numeric block' the best way to write this is: 
  \d{11}

  but, for the 'alphabetical block' there's a 'little'(?) problem... this
  block must not be equals to IT, 
  so that the regExp must matches 111II or 111NT but not
  111IT

  there are someone that can help me to solve this problem?

  thanks a lot
  Celestino


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with regexp

2003-09-10 Thread Rui Duarte
Hi.

"\d{11}[A-HJ-Z][A-SU-Z]" does what you want ?

Rui Duarte

-Original Message-
From: Celestino Bellone [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 10 de Setembro de 2003 9:40
To: [EMAIL PROTECTED]
Subject: problem with regexp


Hi everybody,
I'm looking for a regular expression that matches strings like this:

12345678910AA

for the 'numeric block' the best way to write this is: 
\d{11}

but, for the 'alphabetical block' there's a 'little'(?) problem... this
block must not be equals to IT, 
so that the regExp must matches 111II or 111NT but not
111IT

there are someone that can help me to solve this problem?

thanks a lot
Celestino


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]