473,320 Members | 1,993 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.

regular expression for javadoc style comment

Hi all,
i need to use a regular expression to match javadoc style comments in a file,
something like

/**
* Constructs a new Call instance.
*
* @param object the object the Function shall be executed on
* @param func the Function that shall be executed
* @throws IllegalArgumentException if neigther the object or the function is not available.
*/

i'm finiding many difficulties to write a valid regular expression

ale
Jul 18 '05 #1
1 2110
On Fri, 2004-12-17 at 09:40, Alessandro Crugnola wrote:
Hi all,
i need to use a regular expression to match javadoc style comments in a file,
something like

/**
* Constructs a new Call instance.
*
* @param object the object the Function shall be executed on
* @param func the Function that shall be executed
* @throws IllegalArgumentException if neigther the object or the function is not available.
*/

i'm finiding many difficulties to write a valid regular expression


It would be good if you could post some of the things you've tried, and
perhaps a little more detail about what you're trying to match. Are you
trying to match the comment as a whole, eg "this is a javadoc comment",
or are you trying to extract parts of it?

--
Craig Ringer

Jul 18 '05 #2

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

Similar topics

5
by: Rob | last post by:
Hello all, If I have the following code fragment: /* comment bla bla */ ....code... With a regular expression, how do I get/extract the comment inside this multi line comment block. With...
2
by: Oriana | last post by:
Hi! I'm trying to 'clean up' this source file using regular expressions in Python. My problem is, that when I try to delete extra lines, my code fails. Here's an example.... /** * *...
4
by: pekka niiranen | last post by:
Hi there, I have perl script that uses dynamically constructed regular in this way: ------perl code starts ---- $result ""; $key = AAA\?01; $key = quotemeta $key; $line = " ...
0
by: Natalia DeBow | last post by:
Hi there, I am stuck here on another problem, trying to come up with a regular expression for the following case: a. if a substring "/*" is detected, there is no "*/" that would follow it; b....
5
by: GoodMorningSky | last post by:
In java I can make documentation of all API I created. In C#, there is tags such as <summary> for documentation. However I don't know the tool like java tool. How to do so? Thank you.
4
by: Xavier | last post by:
hello, in a string which i read from a textfile there are some lines, which must be eliminated. The content of the stringvariable is for example : myString=" --comment 1 Update ........
8
by: P K | last post by:
I have an XML in which I have to comment out the <responseopt> tag the tags between this tag should not be commented I plan to use regular expressions The tags looks like this <responseopt...
25
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART...
1
Plater
by: Plater | last post by:
I'm having no end of trouble getting a correct regular expression for what I am doing. It probably would have taken me 5mins to produce a plain text matching system with string indexes, but even...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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.