Profile
Achievement
joshmn's Recent Snippets
- 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
1398
posted 11 years ago by joshmn