Hi,

We need to extract the regexp
 
Threshold12310.77.11.922003-06-05T06:20:00.171Z.
            -----------

Sorry about the braces, that was for indicating the ipaddress. The
dashed line shows the ipaddress required to be extracted.

Tried the following regexp :

Threshold\d+([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})\d{4}-.*

This is extracting me the following :

310.77.11.92

The digit sequence can be of any length and ip address can be either
CLASS A/B/C

Please help me on this.

Thanks,
Sarika


> -----Original Message-----
> From: Schamil Wackenhut [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 06, 2003 3:30 PM
> To: Regexp Users List; [EMAIL PROTECTED]
> Subject: Re: Regexp help in getting the IP address
> 
> 
> * Sarika Inamdar meinte:
> 
> > Threshold123(10.77.11.92)2003-06-05T06:20:00.171Z
> > ...
> > <ipaddress>10.77.11.48</ipaddress>
> > ...
> 
> Which of this both addresses do you need?
> 
> > But the issue is, the start of the string contains 
> "threshold<digits>"
> 
> Followed by '('
> 
> > followed by<ipaddress> ?
> 
> Followed by ')'.
> 
> > How I differentiate between the ip address and the digits ?
> 
> What is the difference between the ip adress and digits?
> (xxx.xxx.xxx.xxx)
> 
> > Any regexp which can achieve the same ?
> 
> you first.
> 
> ciao,
> schamil
> -- 
> bash$ :(){ :|:&};:
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to