How to split string into paragraphs using first comma?

Viewed 16245

I have string: @address = "10 Madison Avenue, New York, NY - (212) 538-1884" What's the best way to split it like this?

<p>10 Madison Avenue,</p>
<p>New York, NY - (212) 538-1884</p>
4 Answers
Related