Dang, that’s compact! Thanks!
-Kurt Euler
···
-----Original Message-----
From: Mauricio Fernández [mailto:batsman.geo@yahoo.com]
Sent: Wednesday, July 31, 2002 3:42 PM
To: ruby-talk@ruby-lang.org
Subject: Re: How to copy string from in a file from some string onward?
On Thu, Aug 01, 2002 at 06:58:23AM +0900, Kurt Euler wrote:
All-
I’d appreciate your help on this one:
Please advise as to how I can copy a substring X from string Y
starting with string Z through the end of string Y.
Yet another:
x = y[(y =~ /#{z}/)…-1]
–
_ _
__ __ | | ___ _ __ ___ __ _ _ __
'_ \ /| __/ __| '_
_ \ / ` | ’ \
) | (| | |__ \ | | | | | (| | | | |
.__/ _,|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Vini, vidi, Linux!
– Unknown source