ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk-beta
pdk-beta
[PDK-Beta] Filter_Build Alpha1
by Howard A. Bullock other posts by this author
Jul 8 2004 11:04AM messages near this date
view in the new Beta List Site
FW: Re: [PDK-Beta] Filter_Build Alpha1 | [PDK-Beta] Filter_Build Alpha1 available for download
Just looked at the Filter_Builder.  It seems that the functionality only
selects entire lines.  Is it possible to only select a portion of a line?

When selecting "matching" and entering a Regex
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} for an IP address the program properly
selects all the lines in the input file that contain an IP address. Wrapping
the Regex in Parens as if to capture data the IP address in the output is
then underlined. What is the meaning of the underline.?


If the desire output is only to be the IP address, is there a better way
than:
Select lines: matching, \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
Replace regEx: ^.*?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*$ with $1

This is an interesting program that shares some similarities with the RegEx
toolkit in Komodo. Definitely, would help the people that want a quick
result and desire quick feedback on their efforts to filter text files or
logs. I see it being used for one-off requests or helping in prototyping
filter code for a larger program.

I will be showing it to a co-worker tomorrow that does more work in an area
that is more applicable to the abilities of this program.


_______________________________________________
PDK-Beta@[...].com
http://listserv.ActiveState.com/mailman/listinfo/pdk-beta

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved