Sorry, the RTFM abbreviation wasn't meant to be anything like you imagine. Just a suggestion where to look for a generic solution to this class of problems. The quote from IRB session quote was a specific solution to the question posed.
Alex > I hope I'm speaking for others on this list, but jumping on somebody > with an RTFM answer is extremely inappropriate. > On 10/1/05, *Alexey Verkhovsky* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > RTFM about regular expressions - they are your best friend for tasks > like this. > > irb:001:0> s = > "http://soft-bogomazov:88/admin/menus/add_item/?menu_id=14" > => " http://soft-bogomazov:88/admin/menus/add_item/?menu_id=14" > irb:002:0> i = s.gsub(/^http:.*\?menu_id=(\d+)$/, '\1') > => "14" > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
