Using multiple RegexOptions

  • Thread starter Thread starter pl
  • Start date Start date
P

pl

Hello,

I have a quick question, I would like to use multiple RegexOptions like
RegexOptions.SingleLine and RegexOptions.IgnoreCase at the same time,
but I haven't been able to find any resource telling how to get the
syntax correct to make it happen.
Does anyone know?

Thanks.
 
You OR them together:

RegexOptions.SingleLine | RegexOptions.IgnoreCase

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
Back
Top