Pls, help me with re
Harvey Thomas
hst at empolis.co.uk
Mon Mar 3 05:16:26 EST 2003
Lexy Zhitenev wrote:
>
> Hi, All.
>
> I want to match a number if it is the only one in the string,
> and the second
> one, if '=' preceeds it.
>
> Example
>
> 'Course: 23,95' - matches '23,95'
> '$1 = 23,95 y' - matches '23,95'.
>
> Regards, Lexy
>
'-?[0-9][0-9,.]*(?![^=]*=)'
Is that OK?
_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service.
More information about the Python-list
mailing list