Browse by Tags

All Tags » Regular Expressions (RSS)

Testing: GC Sanity Checks in Whidbey

I have a feeling this method will only be useful when you can run a series of tests without any collections taking place during your tests. Whenever a collection occurs you can never be sure of the amount of time spent in collection (anyone on the CLR...
Posted by Justin Rogers | with no comments

Regex: MatchCollection uses delay matching for performance

There are several ways to get all of the matches of an expression over the source input, but the most popular probably has to be the Matches method which returns a MatchCollection . What most people don't know, and I didn't until recently, is that the...

Regex: Functionality about named/numbered groups everyone should know.

We have a cool new tool amongst us over on http://www.regexlib.com/RETester.aspx . It is already more functional than the previous tool there that was receiving quite a bit of traffic and attention for quickly testing expressions. The new tool really...

The extended .NET Regular Expression tester is up on www.RegexLib.com

Hey guys, figured I'd ping everyone and tell them this little jewel was out and ready to go. You can test your expressions any time you have an internet connection and use some extended features like source from file/web. I have to say the tool is more...

Regular Expression posts of recent note on blogs.RegexAdvice.com

Justin Rogers: What does conditional matching really mean in a regular expression? Justin Rogers: The not so basics of NOT! Darren Neimke: Cleaning a list perf. test Darren Neimke: The sugary synax we love... Lookaround To note both of my posts are on...
Posted by Justin Rogers | with no comments
Filed under:

Darren's "Killer Reason for LookAround" posting has been haunting me

Darren's Post: http://blogs.regexadvice.com/dneimke/archive/2004/08/03/1432.aspx Every time he comes up with a posting like the above I get an instant message of some sort or another with a quizzical question, “Hehe, you want to be unproductive...

Bringing an end to the posts on decompositions of numeric ranges into validating regular expressions.

I've posted quite a few items covering the process of decomposition. Most of the examinations are textual only and cover the process of generating decompositions by hand. I've since issued a challenge for the creation of an algorithm that would automatically...

Examination of regex range validation using lower and upper bound values

A programming challenge? Maybe a bit of one. If nothing else it is a neat algorithm and examination of generating capture groups that will handle numbers within ranges. The first posting I did on this I examined the generation of 0 through N ranges and...
Posted by Justin Rogers | with no comments

Generic, Cancellable, Asynchronous operations? Yeah, I'll blog about that.

Just code today my friends. The design is simple, create a framework that allows running an asynchronous delegate on the thread pool in a manner where it can be cancelled and any exceptions can be handled. We use the same BeginInvoke/EndInvoke model as...

Asynchronous Regular Expressions using the ThreadPool and a cancellation model.

There are probably numerous ways to shoot holes in this class, but this is a 30 minute attempt at providing an asynchronous framework for running regular expressions. The crux of the model is to allow for cancellation of long-running expressions that...
More Posts Next page »