By tag: RegEx
0
kicks
.NET Regex Lesson 5: Optimization
Starting with a poorly written regular expression, I make a series of optimizations to make it 3 million times faster. I hope to demonstrate several things to look out for in the process. And I encourage you to benchmark your regular expressions before putting them into production code.
0
kicks
Highlighting search text in ASP.NET search page
The article explains how to highlight search text within an ASP.NET search page. The code uses regular expressions to replace text with HTML formatting.
0
kicks
Converting-from-Word-to-HTMLXHTML
The below C# .net code helps you to clean you html which you have copied from MS word. This is very helpful when you convert word document to pure HTML or XHTML
0
kicks
When to use an when not to use Regular Expressions
For the most part regular expressions are there to save you time from parsing text the hard way. But if you're spending more time bending regular expressions to your will to accomplish something that could be done more easily and efficiently with procedural code, then that kind of defeats the purpo...
0
kicks
Regex Hero can now translate a regular expression into English
Regular expressions are one of those things that many programmers dabble with enough to understand the concept, but not enough to memorize the syntax. Code completion is a big step towards making things easier. Beyond that, sometimes an explanation written out in English is just what you need.
0
kicks
Regular expressions with MSBuild. Reading version numbers...
I show how I recently used the MSBuild community tasks and a regular expression to read version numbers out of the AssemblyInfo.cs file into MSBuild properties.
0
kicks
parse and extract proxies on the fly
In this blog i will show you how to parse and extract proxies on the fly using HtmlAgilityPack library and Regular Expression, Let’s get started
0
kicks
Generate Matches for Regular Expressions Using Rex
Regular expressions are one of the more cryptic tools developers utilize in every day work. Sure, just about anyone understands that ^\d\d$ matches a line containing exactly two digits, but you may need a cheat sheet to figure out a regex like \b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25...
0
kicks
Code Hinting for Regular Expressions (an Intellisense-like feature)
It's been a long time in the making but code hinting is here. I took a lot of inspiration from Intellisense. But as I'm sure you know, Intellisense doesn't provide any help when writing regular expressions.
0
kicks
Converting BBCode into HTML using C#
A simple to use class library for converting text containing BBCode used by popular forum systems into HTML using C#.
0
kicks
Regular Expressions. Remember it, write it, test it.
I should say that I’m fan of regular expressions. Whenever I see the problem, which I can solve with Regex, I felt a burning desire to do it and going to write new test for new regex. Previously I had installed SharpDevelop Studio just for good regular expression tool in it. But now I’m a little wis...
0
kicks
Zip Postal code RegEx validation for France Italy Germany and India
Handy Regular Expressions(RegEx) - Zip/Postal code validation for France/Italy/Germany and India.
Zip code validation for any country is most common validation required for any web site where you have address input.
Here is the handy regular expressions, which can be used for Zip/Postal code vali...
0
kicks
Online .NET Regex Tester
Big upgrades for the .NET regex tester on Regex Storm. Now features an Ajax-powered UI, real-time match highlighting, and detailed results info via a tabbed interface (especially useful for .NET programmers).
0
kicks
Regex based Lexer with F#
A regular expression based lexer in F# using computation expressions to enable a declarative way to define the lexer rules.