----- Original Message -----
I've found in the help box of regular expressions the opportunity of
searching for digits by means of [:digit:] expression.

But it doesn't seem to work.

<snip>

After seeing Joe's post:
Search for:
[:digit:]? will find any _single_ digit, example: 1
[:digit:+? will find and combination of digits ex: 10,100, 1000 etc
--------------------------

Why +? , why not simply  +  ? Here is how I see this.

A specification like [:xxx:] is used when searching for a _string_ of objects of a certain type.

The part that replaces xxx specifies the _type_ of object one is looking for (e.g., replacing xxx by digit specifies a decimal digit). By itself, a specification like[:xxx:] is incomplete; one must also state the _length of string_ (and that can be done with ? , + , or {k}). Thus search for [:digit:]? finds the next decimal digit (string of digits, of length 1) search for [:digit:]+ finds the next string of decimal digits (of any length)
search for  [:digit:]{2}  finds the next string of 2 decimal digits
etc

Likewise for [:space:]?, [:space:]+, [:space:]{2} and other such searches.

Vous ĂȘtes d'accord?
C'est simple, n'est-ce pas?

Ben


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

Reply via email to