in reply to regex to add network line-endings if required.

I recommend you post a script with your regex attempts, matching against various test input data. And comments on what is wrong with each of the regexes. And ideally the output.

Ideally all in a script you post in "code" tags. Then it would be easier for someone on PM to write one regex that does everything you want to do.

Celsius to Fahrenheit using Regexp::Common has some simple code that would get you started reformulating your question in a more helpful way.

  • Comment on Re: regex to add network line-endings if required.