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
|