Finding duplicates with RegEX
- From: "scott" <nobody@xxxxxxxx>
- Date: Thu, 13 Sep 2007 12:07:43 -0700
For the sample below, I'm trying to construct an expression to capture drive
sizes (second word) and the corrisponding serial id (fourth word). The
expression I have so far is this : '\w*(\d{2,3}.\dGB).*(\(.*\))'
It only returns part of the drive size (ie: 74.4GB instead of 274.4GB).
Can the expression also filter duplicates?
XMTOMC320 274.4GB 512B/sect (A8188BKE)
XMTOMC320 136.5GB 512B/sect (A818DNME)
XSCHT6146F 68.0GB 520B/sect (3HYX5ERR0000750175VW)
XMTOMC320 488.7GB 512B/sect (A818NGCE)
XMTOMC320 274.4GB 512B/sect (A8188BKE)
XMTOMC320 136.5GB 512B/sect (A818DNME)
XMTOMC320 488.7GB 512B/sect (A818NGCE)
XSCHT6146F 68.0GB 520B/sect (3HYX5ERR0000750175VW)
.
- Follow-Ups:
- Re: Finding duplicates with RegEX
- From: Harvey Colwell
- Re: Finding duplicates with RegEX
- From: Alexander Mueller
- Re: Finding duplicates with RegEX
- Prev by Date: Re: EFS, Active Setup and Desktop Folder
- Next by Date: Re: Determine what permissions a group has?
- Previous by thread: Disable POWER and SLEEP Keys
- Next by thread: Re: Finding duplicates with RegEX
- Index(es):