Profile
Achievement
joshmn's Recent SnippetsTagged ruby
- All /
« Prev 1 Next »
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:
# get_string_between("hellomyfriendmoto", 'o', 'm')
# > myfriend
0
1426
posted 11 years ago by joshmn