[Activetcl] Help with regexp
by Robert M Bartis other posts by this author
Dec 23 2007 5:01AM messages near this date
view in the new Beta List Site
Re: [Activetcl] question relating to iwidgets::tabnotebook
|
Re: [Activetcl] Help with regexp
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+)
The problem I have is the first rule also is satisfied by the last line
(i.e asdd 3, jhiuya 5, as5ads 6, above 3). This causes problems in my
application. To resolve this I'd like to write a regexp that says match
one set of Ares' but not another, within a single regexp.
Robert M. Bartis
Stinger Quality Assurance
TEL: (908) 582-6566
EMAIL: bartis@[...].com
Thread:
Robert M Bartis
Hillel Seltzer
Robert M Bartis
|