l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social Gathering
Next Installfest:
Sat. Sept. 27, 10am-6pm
Latest News:
Aug. 30: September Installfest scheduled
Page last updated:
2005 Jul 08 09:34
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Matching Contents of Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Matching Contents of Lists



Examples of matching:

TALL0047A    TALL047A    match
TALL0047A    TAL0047A	    not a match
TALL0047A    TAL0470A	    not a match


The contents will always be one to four alpha characters followed by one
to four numeric characters possibly followed by one or two alpha
characters.

A match would be defined as the following criteria being met:

- The last one to four digits being identical (excluding leading zeroes)
- The first one to four letters being identical
I think your rules need more flushing out because based on your rules you can get many entries in list 1 to match a single entry in list 2

> TALL0047A TALL047A match
> TALL0047A TAL0047A not a match

Based on your rules above, TALL0047A and TAL0047A do in fact match

Are you really saying:

From both items
remove trailing alphas
take the last 4 digits
remove any leading zeros
if the remaining digits match from both items move on to the front of the string
if the leading alphas match (i.e. have the same length and same sequence) then you have a full match

Do the strings always start with alphas? Or are there sometimes numerics within the first 1-4 characters?

Is there stuff between the leading and ending portions, such that the entries may be more than 10 characters long?


Jay


_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
No Starch Press
For book donations.