Well, ya... I guess I did the equivalent (though not so concise) method after sending the first email to roundtable...

echo APP-AM005-a | sed 's/[[:alpha:]]//g;s/[[:punct:]]//g'

I like the search inversion though Sean. Much cleaner!

So the problem I have is solved, thanks Sean. But why won't my original method work?
The [[:digit:]]* should have matched all the consecutive digits shouldn't it? And then the ( ) brackets should place the match into buffer 1.

Steve

IBM Global Services
sjm@ca.ibm.com
(204)792-3245

----- Forwarded by Steve Moffat/CanWest/IBM on 05/09/2007 04:08 PM -----

          "Sean Walberg" <sean@ertw.com>
          Sent by: swalberg@gmail.com

          05/09/2007 04:05 PM


To

Steve Moffat/CanWest/IBM@IBMCA

cc

roundtable@muug.mb.ca

Subject

Re: [RndTbl] Oh great RE master

# echo BUILD-AM005-a | sed 's/[^0-9]//g'
005

Sean



On 5/9/07, Steve Moffat <Steve.Moffat@ca.ibm.com > wrote:




--
Sean Walberg <
sean@ertw.com> http://ertw.com/