Messaggio in formato MIME composto da piy parti.

------extPart_000_00B2_01C2DAF5.D871BB10
Content-Type: text/plain;
	charsetso-8859-1"
Content-Transfer-Encoding: quoted-printable

I will explain you my problem, with a short example code:

------------------------------------------------
a = "Good this kind of work!"
b = "this kind"
puts a[Regexp.new("G.*#{b}.*rk!")]               >> Good this kind of work!"

a = "Good this+kind of work!"
b = "this+kind"
puts a[Regexp.new("G.*#{b}.*rk!")]             >> nil
-----------------------------------------------

I woud like to know if you can implement a method string.to_re which converts a string to a regular expression, i.e.:

Good this+kind of work        >>>>   Good this[+]kind of work


Thank you very much for your wonderful Ruby!
Mattia Peronio



------extPart_000_00B2_01C2DAF5.D871BB10
Content-Type: text/html;
	charsetso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.4856" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I will explain you my problem, with a short example 
code:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>a = "Good this kind of work!"<BR>b = "this 
kind"<BR>puts 
a[Regexp.new("G.*#{b}.*rk!")]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&gt; Good this kind of work!"<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>a = "Good this+kind of work!"<BR>b = 
"this+kind"<BR>puts 
a[Regexp.new("G.*#{b}.*rk!")]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&gt; nil</FONT></DIV>
<DIV><FONT face=Arial 
size=2>-----------------------------------------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I woud like to know if you can implement a method 
string.to_re which converts a string to a regular expression, i.e.:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Good this+kind of 
work&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;&gt;&gt;&nbsp;&nbsp; Good 
this[+]kind of work</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you very much for your wonderful 
Ruby!</FONT></DIV>
<DIV><FONT face=Arial size=2>Mattia Peronio</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------extPart_000_00B2_01C2DAF5.D871BB10--