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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(?=(?:[^\']*\'[^\']*\')*(?![^\']*\'))
Description
This exp will parse out space delimited strings with consideration to single quotes. I use it with SQL statements.
Matches
BETWEEN '11/1/2004' AND '12/1/2004 11:59:59 PM'
Non-Matches
flabberguasted
Author Rating: Not yet rated. Scott Richardson
Source compilation
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: It doesnt parse out anything
Name: Angel
Date: 7/24/2012 8:23:57 PM
Comment:
Testing the regex with the author example, it fails, returns nothing.


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