Or try 
  s|/\*.*?\*/||s
The differences from the previous post:
1) Use | instead of / to delimit the expression so you don't have to escape
the /.
2) Use ".*?", which matches the minimum, instead of  ".*", which matches the
max.
3) Use the s modifier at the end which allows . to match imbedded newlines.
   Then you can read the whole file in as a single line and
   remove multiline comments as well.
- Dan

-----Original Message-----
From: Rex Cooper [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 7:07 AM
To: [EMAIL PROTECTED]
Subject: Re: question about jakarta-oro 2.0.3


The perl regular expression you are looking for is

s/\/\*.*\*\///

Remember that * and / are special characters and need to be escaped as \*
and \/
So, the expression above reads

s/    -- start of substitution
\/\*    -- match /*
.*    -- The means any non newline character (This would include the / that
you had in your second example
\*\/    -- match */
//    -- replace the matched expression with nothing (in otherwords, remove
it)

That would work as long as the /* and */ are on the same line

Not sure how to do this with ORO

Reply via email to