[geeks] regex question, I suppose...

David Cantrell geeks at sunhelp.org
Fri Aug 24 02:17:06 CDT 2001


On Fri, Aug 24, 2001 at 01:36:34AM -0400, Tim Harrison wrote:

> Let's say I have a listing of a few thousand MAC addresses in the Cisco
> style format ( xxxx.xxxx.xxxx ) and I want to change those into the
> standard format ( xx.xx.xx.xx.xx.xx ).  What would one use?

NOT a regex question.  It's likely to be faster and more readable using
substr() and index() or whatever the equivalents are in your language of
choice.

-- 
David Cantrell | david at cantrell.org.uk | http://www.cantrell.org.uk/david

  Some people, when confronted with a problem, think ``I know, I'll use
  regular expressions.'' Now they have two problems.        -- jwz



More information about the geeks mailing list