Transform regex from Ruby to PHP
This project was awarded to RobNL for $30 USD.Get free quotes for a project like this
Project Budget$30 - $250 USD
I need the following 3 line Ruby snippet to be transformed to PHP
[url removed, login to view]!(/(\A|^$\n)(^\w[^\n]*\n)(^\w[^\n]*$)+/m) do |x|
[url removed, login to view](/^(.+)$/, "\1 ")
The PHP function should perform in exactly the same way. 30$ maximum and do not send any references etc. instead please confirm that you are able to transform the code in the private message.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online