Possible Duplicate:
How do I match any character across multiple lines in a regular expression?
I am currently making a software, working like Notepad++
I am using regex to find the words, and give them a color. However; I got stuck on coloring the multiple line comments.
Sample: /* This is a multiline comment */
Using my currently regex: /\*.*?\*/
- It is working properly until a newline is being placed.
So it matches: /*This, for instance!*/
But does not match:
/* This kind of comments
- Where multiple lines is placed...
*/
So I was wondering, instead of using the [dot] for finding the words inside the comment, can I then use some other, match all operator?
- I am using C#s class 'Regex'