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 >> activetcl
activetcl
Re: [Activetcl] Help with regexp
by Hillel Seltzer other posts by this author
Dec 24 2007 9:37AM messages near this date
view in the new Beta List Site
[Activetcl] Help with regexp | Re: [Activetcl] Help with regexp
Are these occuring in the middle of a line?
If not, just anchor it to the start of the line with "^":

^(\S+)\s+(\d+)

---Hillel

On Sun, 23 Dec 2007 07:00:06 -0600, Bartis, Robert M \(Bob\) wrote
>  I have a need to evaluate the following lines such that the first
>  regexp rule consumes or matches all but the last line of the strings
>  shown below:
> 
>  asdd 3
> 
>  jhiuya 5
> 
>  as5ads 6
> 
>  Total number of things above 3
> 
>  The rule used for the first three lines is
> 
>  (\S+)\s+(\d+)
> 
>  and for the last line
> 
>  (Total number of things above)\s+(\d+)
>  
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Robert M Bartis
Hillel Seltzer
Robert M Bartis

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