Hello,

I am trying to create a regular expression with the following rule:

my text is:
<TEXT id=''>blabla</TEXT>
I want to replace <TEXT*> with something

"<TEXT id=''>".gsub(/the magic regular expression/,"replacement")
==> replacementblabla</TEXT>

but i want also that
"<TEXT>blabla</TEXT>".gsub(/the magic regular expression/,"replacement")
returns the same result
==> replacementblabla</TEXT>

and
<TEXT *anything*>blabla</TEXT>".gsub(/the magic regular
expression/,"replacement")
returns the same result
==> replacementblabla</TEXT>

Can you help me ?

Thank you.

Gunther
-- 
Posted via http://www.ruby-forum.com/.