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

Hello, Michiel...

Oct 15, 2006 at 23:29, Michiel van der Vlist wrote to Jerry Schwartz:


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

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

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

I suppose I could simply explode the entire line into an array, that might
be simpler. Unfortunately, I've forgotten most of my Perl.

Regards,

Jerry Schwartz

mailto:jerryschwartz{at}comfortable.com
http://www.writebynight.com

--- Msged/NT 6.0.1
* Origin: Write by Night (1:142/928)
SEEN-BY: 633/267 270 5030/786
@PATH: 142/928 106/1 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™.