From: "Peña, Botp" Date: 2007-07-18T17:08:58+09:00 Subject: Re: Easily parsing a string to retrieve values and assign them to a variable/symbol. From: Eric DUMINIL [mailto:eric.duminil@gmail.com] # For example, I would not know which file I should retrieve on: # 'ftp://ftp.org/DATA/mike' # but # 'ftp://ftp.org/DATA/{user_name}/{year}/{month}-{day}.txt' would do # just fine, so that I could, for example, get this hash: # {:year=>"2005", :user_name=>"mike", :day=>"15", :month=>"10"} # for this filename: # 'ftp://ftp.org/DATA/mike/2005/10-15.txt' very nice. but would it be more practical if we delineate a variable just like we used to in ruby inline string; ie, use #{var} instead of just {var} this would be handy like, if i want to rename or move all folders under /mike/2005/ to /mike/2007/ eg.. the retrieval and assignment string just stay the same... kind regards -botp