Posted By

joshmn on 04/22/13


rails ruby String between

Versions (?)

Get string between two strings

 / Published in: Ruby

If you're using Rails and want to make this a global function, drop this into your application_controller and call it as a function.

Example: # getstringbetween("hellomyfriendmoto", 'o', 'm') # > myfriend

Report this snippet  

You need to login to post a comment.