regex + regexoptions

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

Hi all!

I have been using regex for some time now in VB.Net, there I had to put a
Or between the options.
How do I have to do this with csharp?


Please help!



Yours,
Steve
 
Stefan said:
I have been using regex for some time now in VB.Net, there I had to put a
Or between the options.
How do I have to do this with csharp?

Use the bitwise-or operator, which is |

RegexOptions.Compiled | RegexOptions.IgnoreCase etc.
 
I just got an answer in german Newsgroup:

You have to use | for binary linkage


Thanks for all!

Steve
 
Back
Top