Ruby RegEx


#1

Hi,

This may or may not be the correct group, but I am having serious
problems with the below regular expression.

xpath_test = “Payment Method: Visa
View purchased media: Click here
<http://xxx-ui-systest/Customer/ViewPurchases.aspx?Id=61838ea5
-28e5-4427-bd9f-48996492c267>”

puts xpath_test
puts xpath_test.match(/<http://xxx-ui-systest/Customer/
ViewPurchases.aspx?Id=.*?>/)

Could anybody please help?

Thanks

Aidy


#2

This should help
http://www.ruby-doc.org/core/classes/String.html#M000827

Cyriac Thomas Chittuthara
MEC CSA 2k10
www.tuxomaniac.co.nr
www.photoblog.com/cyriacsmail
www.twitter.com/cyriacthomas


#3

On 13.04.2009 18:59, aidy wrote:

This may or may not be the correct group, but I am having serious
problems with the below regular expression.

What problems?

robert