I have a file of records that look like this:
123-456,RTY,76-78,12-09-87,key
I would like to remove the hyphens from the first, and fourth values as delimited by commas but not the third value. So I would like to have the record look like this:
123456,RTY,76-78,120987,key
Can I do this using a Perl regular expression? I haven't had any luck, and I just end up stripping out all hyphens.
123-456,RTY,76-78,12-09-87,key
I would like to remove the hyphens from the first, and fourth values as delimited by commas but not the third value. So I would like to have the record look like this:
123456,RTY,76-78,120987,key
Can I do this using a Perl regular expression? I haven't had any luck, and I just end up stripping out all hyphens.