Quick questions on using regular expressino with gsub

Please never mind the question recently sent (below). Figured it out.

Thanks.

-ke

···

-----Original Message-----
From: Kurt Euler
Sent: Tuesday, September 10, 2002 9:07 AM
To: Ruby (E-mail)
Subject: Quick questions on using regular expressino with gsub…

Experts-

Quick question: I’m trying to use the regular expression “\d” to replace the characters “SP” followed by any single digit, with “SP” followed by the value in a string variable. However, this technique doesn’t appear to make the desired replacements:

pkg_base_temp.gsub!(/SP\d/, "SP"+sp_num_step)

is the target string “/SP\d/” not written correctly?

Thanks.

-Kurt