At 10:59 AM 02/11/2006, Gary Udstrand wrote:
I assume this is always a number and you want to know if it is not zero.

\b[1-9]\s*$

Ok, thanks. If this line is in a larger block of text, how can I find this line (assuming it always starts with 7 Seek_Error_Rate) if the final character is non-zero?

T


If it can be alpha as well

\b[1-9a-zA-Z]\s*$

-g

On 11/2/06, Thane Sherrington <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
Anyone know a way to use Findstr to parse a line like this:

7
Seek_Error_Rate         0x000b   200   200   051    Pre-fail  Always
      -       0

And tell if the final number is non-zero?

If I use findstr /r "0$" it finds the last number as zero, but I
don't know regex well enough to work out not zero.

T




--
-Gary

Reply via email to