tao wang wrote:
hi,

I'm trying to write a script to match a pattern like
this: 1.10
I wrote [\d.]+, but this also match with pattern ...
, which has no number in it. Could somebody help me
with it? I'm new to perl and scripts. thanks a lot.

\d.\d+
\d+.\d+
\d*.\d*
\d+\.+\d+
\d+\.*\d+
\d*\.+\d*
\d*\.*\d+
etc.

You get the idea, not sure what your possible data can be...

+ == one or more matches
* == zero or more matches
. == any character
\. == dot
\d == digit

http://danconia.org


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to