On Aug 10, 2011, at 11:20 AM, saurabh a. wrote:

> Hi,
> 
> Please help me with regular expression.
> 
> str = "abc = 100.300"
> 
> i want to write a regular xpression for getting the value after =, i.e.
> 100.300, i mean reg ex should return value after =

Might I suggest an alternative to regex?

irb(main):003:0> str.split(/ = /)
=> ["abc", "100.300"]
irb(main):004:0> str.split(/ = /)[1]
=> "100.300"
irb(main):005:0>

Regards,
Chris White
http://www.twitter.com/cwgem