Hi,
I have a file containing the follwoing line.
$4.96
I wrote the following Regex , but the above mentioned line
was not
returned as a match. Can any kindly explain that?
$[0-9]+(.[0-9][0-9])?
I tried this expression on
1) Textpad on windows and
2) grep in Solaris
Thanks.
Beginners Doubt.
2006-01-31 13:54:54
On Tue, 31 Jan 2006 03:43:24 -0500, seyal <seyal.v.pgmail.com> wrote:
> I wrote the following Regex , but the above mentioned
line was not
> returned as a match. Can any kindly explain that?
>
> $[0-9]+(.[0-9][0-9])?
>
> I tried this expression on
> 1) Textpad on windows and
> 2) grep in Solaris
It . . . really should work. In the case of Textpad, I'm
not familiar
with it--does it support regex and if so, is it enabled?
Never used grep
on solaris, so I can't say -- but it works fine for me in
editpad pro as
well as here:
http://warefree.net/?q&f=%5C%24%5B0-9%5D%2B%28%5
C.%5B0-9%5D%5B0-9%5D%29%3F&r=&text=%244.96&i&
;m&p
You could also use
$[0-9]+(.[0-9])?
Beginners Doubt.
2006-01-31 15:46:58
works fine in .NET; u need to use this syntax (more
concise):
$d+(.d)?
Beginners Doubt.
2006-01-31 22:57:59
> I wrote the following Regex , but the above mentioned
line was
> not returned as a match. Can any kindly explain that?
Your regex worked just fine in Zeus.
Jussi Jumppanen
Author: Zeus for Windows
http://www.zeusedit.com
Beginners Doubt.
2006-01-31 23:40:50
Thanks,
I also tried this - $[0-9]+(.[0-9][0-9])? (Escape
sequence for
the braces).
Now it worked in Textpad.
But still cant get it to work in grep.
Anyways, thanks for your reply.
Beginners Doubt.
2006-01-31 23:37:48
Thanks,
I also tried this - $[0-9]+(.[0-9][0-9])? (Escape
sequence for
the braces).
Now it worked in Textpad.
But still cant get it to work in grep.
Anyways, thanks for your reply.