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
Total Bids
Project Description


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.

Awarded to:
Skills Required

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

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online