473,411 Members | 2,030 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,411 software developers and data experts.

Utility to remove comments in vb.net files

I need a utility to remove all the comments from vb.net files

Thanks in advance

Dec 19 '06 #1
4 5169

neelu wrote:
I need a utility to remove all the comments from vb.net files

Thanks in advance
write a VB.NET program to do it?
should be easy: any line with a single quote as the first character
should be removed. and everything AFTER a single quote (even if it's
not the first character), provided the quote is not between a pair of
double quotes.
and the files you send to this program are any *.vb files.

Dec 19 '06 #2
Why don't you just do a SEARCH & REPLACE for ' with a space?

Dec 19 '06 #3

IdleBrain wrote:
Why don't you just do a SEARCH & REPLACE for ' with a space?
;)
mmmm... yeah search and replace with a regular expression would
probably be quickest... I thought this guy really wanted a program that
did, uh, search and replace. oh well.

Dec 19 '06 #4
"IdleBrain" <in**************@yahoo.comschrieb:
Why don't you just do a SEARCH & REPLACE for ' with a space?
Because it's not always that easy:

\\\
Bla("Frank's book")
Foo() ' This and that. '
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Dec 20 '06 #5

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

Similar topics

1
by: Luciano Cavallero | last post by:
Hi, I'm looking for a Diff utility for C++ class, able to show differences two class in term of methow, properties etc. I know that this is more complex that a common diff files because need a...
2
by: m00nm0nkey | last post by:
I'm sure this has probably been asked before, but, am I being foolish or does the Class Builder utility not exist in VB.Net? If so, why did MS Decide to remove this feature? I personally found it...
11
by: Chris Croughton | last post by:
I have a requirement to partially preprocess C code. By 'partially' I mean that I need to define some macros (to the utility) and have it preprocess only those macros, leaving everything else...
1
by: Dhanak | last post by:
I have around 1000 aspx files that contains standard lines intended for debugging purpose.Now before we put these to production we need to remove these lines from all files. Instead of doing it...
2
by: Jim | last post by:
I work in the environmental industry and we have large gcms instruments that aquire raw data to an attached computer. These computers are networked, and have shared folders so the data can be...
31
by: Martin Jørgensen | last post by:
Hi, I've had a introductory C++ course in the spring and haven't programmed in C++ for a couple of months now (but I have been programmed in C since january). So I decided to do my conversion...
6
by: carlos | last post by:
If someone were to write a utility that would go through your html, and javascript code and validate it/modify it, what language/ technology would you experts suggest I use? I know that the W3C...
9
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
Recently, there was a Linux program distributed as source code, and it compiled fine on the majority of systems. However on some systems, it failed to compile. On some of these systems, people were...
61
by: arnuld | last post by:
I have created a program which creates and renames files. I have described everything in comments. All I have is the cod-duplication. function like fopen, sprint and fwrite are being called again...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.