Comment « Development « Java Regex Q&A

Home
Java Regex Q&A
1.Development
2.find
3.group
4.Match
5.matcher
6.number
7.Operation
8.parse
9.Pattern
10.replace
11.validation
12.word
Java Regex Q&A » Development » Comment 

1. Including comments in Java regular expressions    stackoverflow.com

I have some complex regular expressions which I need to comment for readability and maintenance. The Java spec is rather terse and I struggled for a long time getting this working. ...

2. Regex - get code between two comments    stackoverflow.com

How can I get

Text t;
Graph g;
from
// Co
Text t;
Graph g;
// Co
?
// Co\r?\n(.*)\r?\n// Co
works when there is one line, but does not work with multiple lines.

3. Regex on comment /*.....*/ in Java    forums.oracle.com

Thanks for answers. The purpose is that I just want to write a small application that removes all comments from java file. I already wrote it BUT without using regular expressions. And I came to conclusion that with regex it would be more effecient but I don't know so far how to implement this. For example you should consider that such ...

5. Requesting advice:Comment categorization based on predefined regex    forums.oracle.com

What if it says, "This was no good," or "I thought this would be good but it wasn't," or "If you want something good, find a different one"? Not trying to burst your bubble. Just trying to make sure you're aware that it's nigh impossible to figure out the sense of a sentence or paragraph simply by the presence of individual ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.