Mikael Høilund
6/19/2008 10:49:00 PM
On Jun 20, 2008, at 0:12, Justin To wrote:
> I'm stuck trying to write a regular expression for a percentage:
>
> Examples of what I'm trying to match:
>
> 1.1, 1.12, 12, 12.1 and 12.12
>
> 0.00 <= float <= 100.00
>
Perhaps try /\d?\d(\.\d\d?)?|100(\.00?)?/ (untested).
--
a,b=%Q=Z,O^NPO\r4_PV\\PI\x15^-\x0\v=,email=%\%%%c\%115%%# Mikael
Hoilund, CTO
okay=%#;hmm=(0...a.size).map{|i|((a[i]-email[i]+2)%128).# of Meta.io
ApS from
chr}.join;!email.gsub!'o',"%c%c"%[3+?0.<<(2),?G.~@];aha=#############
Denmark
hmm.scan(/#{'(.)'*5}/);!puts(email[1..-12]+aha.shift.zip(*aha).join)#
Ruby <3