Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: regex pattern match

by hdb (Prior)
on Apr 01, 2013 at 12:33 UTC ( #1026473=note: print w/replies, xml ) Need Help??

in reply to Re: regex pattern match
in thread regex pattern match

Your question is not easy to understand. Would it be possible to provide:

  • A sample input file, just a couple of lines,
  • the desired output file, and
  • some more ideas what you want to match and replace?
Also, it seems, as your example grows more complex, you should be using Text::CSV, which allows you to first split your line properly along the commata, and then to split any entry along commata.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026473]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-10-27 22:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (372 votes). Check out past polls.