On Fri, 5 Oct 2001, Daniel Falkenberg wrote: > List, > > I have an IP address within this regular expression that I need > extracting and stored in a variable. Could some one offer some help on > this? The line is as follows... > > inet addr:144.137.215.25 P-t-P:172.31.28.24 > Mask:255.255.255.255 > > I need to extract the inet addr: i.e 144.137.215.25 and store it in a > variable.
/addr:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/ $1 will contain the inet address -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Everybody likes a kidder, but nobody lends him money. -- Arthur Miller -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]