Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
Some perl regex help
 

Index | Next | Previous | View Flat


alex_v2 at yahoo

Jun 29, 2008, 9:47 PM


Views: 597
Permalink
Some perl regex help

Hello again all. Been a while since I've posted here but needed some help on
a regex I was trying to write.

$line =~ tr/(\(|\)|<|>)/(\&#40;|\&#41;|\&lt;|\&gt;)/g;

This does not work at all in perl so I found so I replaced the tr with s and
the search part works as expected but the replace does not. I've been trying
to read around forums and regex documents for perl but they seem unorganized
and cryptic. So any help would be appreciated.

-Alexander
--
View this message in context: http://www.nabble.com/Some-perl-regex-help-tp18188634p18188634.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Subject User Time
Some perl regex help alex_v2 at yahoo Jun 29, 2008, 9:47 PM
    Re: Some perl regex help js5 at sanger Jun 30, 2008, 12:24 AM
    Re: Some perl regex help alex_v2 at yahoo Jun 30, 2008, 4:34 AM
    Re: Some perl regex help perrin at elem Jun 30, 2008, 5:52 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.