regex

  • Thread starter Wojtek Michalik
  • Start date
W

Wojtek Michalik

Can anybody give me en example of working regex
that will match sample text given below:
banana\n
\tapple\n
I have been trying to match it by:
perl -pi -e 's#(banana\n\t)(apple)#$1\.\/$2#g' with modifiers like m s ms
nothing worked.
I use perl version 5.8
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,614
Members
45,289
Latest member
stfp04

Latest Threads

Top