[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby RegEx

aidy

4/13/2009 5:00:00 PM

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 Answers

Cyriac Thomas

4/13/2009 5:05:00 PM

0

This should help
http://www.ruby-doc.org/core/classes/String.ht...
--
Cyriac Thomas Chittuthara
MEC CSA 2k10
www.tuxomaniac.co.nr
www.photoblog.com/cyriacsmail
www.twitter.com/cyriacthomas



On Mon, Apr 13, 2009 at 10:30 PM, aidy <aidy.lewis@googlemail.com> wrote:
> 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
>
>

Robert Klemme

4/13/2009 9:12:00 PM

0

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

--
remember.guy do |as, often| as.you_can - without end