TIP: Click on subject to list as thread! ANSI
echo: ic
to: Jerry Schwartz
from: Michiel van der Vlist
date: 2006-10-19 10:52:04
subject: Nodelist Search

Hello Jerry!

 JS>>> My program simply looks for CM in the flags, which is obviously
 JS>>> too simplistic. I need a better regex, which I'm not in the mood
 JS>>> to come up with right now. I need to look for "CM" at the
 JS>>> beginning of the flags, ",CM," if not at the end
of the flags,
 JS>>> and either "CM" or ",CM" at the end of the flags.

 MvdV>> Hmmm, just looking at a match at the end of a flag does not
 MvdV>> seem right to me. That way you can indeed not discriminate
 MvdV>> between ICM and CM. Or TCM an CM for that matter...

 JS> Not at the end of a flag, at the end of all of the flags. I grab all
 JS> of the flags into one string, since I don't know how many there are.

I do the same in a pointlist programme. But then the next step is....

 JS> I suppose I could simply explode the entire line into an array, that
 JS> might be simpler.

To read each flag individually to compare them to a list of known flags...

 JS>  Unfortunately, I've forgotten most of my Perl.

Programming skills: use them or lose them...

Cheers, Michiel

--- GoldED+/W32-MSVC 1.1.5-b20060315
* Origin: http://www.vlist.eu (2:280/5555)
SEEN-BY: 633/267 270 5030/786
@PATH: 280/5555 123/500 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.