From: Joshua Muheim Date: 2007-04-09T20:52:15+09:00 Subject: Substring like in PHP's substr()? Hi all I'm looking for the coolest way to get the substring /Webwork/pgbookings out of /Users/Josh/Webwork/pgbookings The part /Users/Josh is saved in the variable my_var. In PHP I would do something like the following: substr(/Users/Josh/Webwork/pgbookings, strlen(my_var)) # => /Webwork/pgbookings What's the fastest way to do this in Ruby? :-) Josh -- Posted via http://www.ruby-forum.com/.