hi there - I did not try this, but it seems somewhat logical to me:

$List =~ /^(?:(\d+(\.\d+)?)\*)?(\w+)\/(?:(\d+(\.\d+)?)\*)?(\w+)$/;


> > Hello,
> > 
> > I have this regular expression:
> > 
> > $List =~ /^(?:(\d+)\*)?(\w+)\/(?:(\d+)\*)?(\w+)$/;
> > 
> > It checks for a string like this: number*word/number*word
> > 
> > But it only accept integer number...
> > 
> > Does anybody knows how to change it to accept decimal numbers like
> 0.1???
> > 
> > Thanks,
> > Wagner Garcia Campagner
> > 
> > -- 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -- 
> - Alex
> 
>   ICQ-#: 40011562
>   mailto:[EMAIL PROTECTED]                      
> 
> 
> 
> 
> 
> +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
> 
> 

-- 
- Alex

  ICQ-#: 40011562
  mailto:[EMAIL PROTECTED]                      





+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


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

Reply via email to