[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Hey, how do you make a regular expression visible?

Xeno Campanoli

1/22/2008 11:35:00 PM

I've got all these strings in this object holding regular expressions,
and I want to report on them accurately, but all my backslashes are
disappearing. Any suggestions?
--
The only sustainable organizing methods focus not on scale,
but on good design of the functional unit,
not on winning battles, but on preservation.

2 Answers

7stud --

1/23/2008 12:11:00 AM

0

Xeno Campanoli wrote:
> I've got all these strings in this object holding regular expressions,
> and I want to report on them accurately, but all my backslashes are
> disappearing. Any suggestions?

What does "report on them accurately" entail?


r = /s\.d/
p r

--output:--
/s\.d/
--
Posted via http://www.ruby-....

Xeno Campanoli

1/23/2008 12:14:00 AM

0

7stud -- wrote:
> Xeno Campanoli wrote:
>> I've got all these strings in this object holding regular expressions,
>> and I want to report on them accurately, but all my backslashes are
>> disappearing. Any suggestions?
>
> What does "report on them accurately" entail?
>
>
> r = /s\.d/
> p r
>
> --output:--
> /s\.d/
Sorry. My bug. I should have looked closer at my code. Thanks.

--
The only sustainable organizing methods focus not on scale,
but on good design of the functional unit,
not on winning battles, but on preservation.