Hi,
I need the following 3 line Ruby snippet to be transformed to PHP
[login to view URL]!(/(\A|^$\n)(^\w[^\n]*\n)(^\w[^\n]*$)+/m) do |x|
[login to view URL](/^(.+)$/, "\\1 ")
end
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.