473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using multiple RegexOptions

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.

Dec 29 '05 #1
1 13113
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.

"pl" <ph*****@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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.

Dec 29 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Henry | last post by:
I have this simple code, string escaped = Regex.Escape( @"`~!@#$%^&*()_=+{}\|;:',<.>/?" + "\"" ); string input = @"a&+" + "\"" + @"@(-d)\e"; Regex re = new Regex( string.Format(@"(+)", escaped),...
5
by: Rothariger | last post by:
Hello.... i want to know if its posible to rename multiple files like windows does.. example: file zzzzzzz.doc file asdasd.doc file esfsefse.doc
1
by: shuiqing.li | last post by:
Hi, I met a question when I would match some lines using the pattern "<td>(.*?)</td>" in flows : =============== <td>Hi hello world! .... </td> ===============
2
by: richardkreidl | last post by:
I have the following string below in which I need to pull out the name that follows: ContactsManager:" . In this particular case it would be: BARBARA JOSEPH Job Completion, Failure...
1
by: GS | last post by:
I got a bunch of check boxes to represent regexoptions. converting that to one single regexoptions for storing in the database is easy. what about the other way, from database int to regexoptions...
6
by: GS | last post by:
I tried converting regexoptions to bits sp I can do bitwise operation but I just could not get it going. I tried Google, so far I failed to find the answer. any hint? what is happening, is...
19
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
This is an example of the data; 2007/07/27 11:00:03 ARES_INDICATION 010.050.016.002 404.2.01 (6511) RX 74 bytes 2007/07/27 11:00:03 65 11 26 02 BC 6C AA 20 76 93 51 53 50 76 13 48...
1
by: jonnyboy6969 | last post by:
Hi All Really hoping someone can help me out here with my deficient regex skills :) I have a function which takes a string of HTML and replaces a term (word or phrase) with a link. The pupose...
1
by: Murdz | last post by:
Hi all, A constructor for System.Text.RegularExpressions.Regex includes a 2nd parameter for the RegexOptions enum. With this you can pass multiple RegexOptions as below: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.