RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find VB.NET or VB Comments
Expression
(REM [\d\D]*?[\r\n])|(?<SL>\'[\d\D]*?[\r\n])
Description
Filters out VB.NET and VB6.0 comments.
Matches
REM comment | 'comment | ''' XML comment
Non-Matches
REMA | text='test'
Author Rating: The rating for this expression. Punit Ganshani
Source Self
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Inside strings
Name: Pucsi
Date: 6/19/2008 9:50:07 AM
Comment:
Cannot handle cases when a comment like sequence is inside a string. Example: MessageBox.Show("After this ' this expression fails") MessageBox.Show("After this REM this expression fails")


Title: Inside strings
Name: Pucsi
Date: 6/19/2008 9:49:53 AM
Comment:
Cannot handle cases when a comment like sequence is inside a string. Example: MessageBox.Show("After this ' this expression fails") MessageBox.Show("After this REM this expression fails")


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials