-
This is a C# 2.0 enhancement of a C# port of YUI Compressor 's CSS minification code I got a little carried away with ideas for this, they were all regex based which really is what motivated me to work on it. However after I thought I was done I learned...
-
XRegExp is a JavaScript library that provides an augmented, cross-browser implementation of regular expressions, including support for additional modifiers and syntax. Several convenience methods and a new, powerful recursive-construct parser that uses...
-
OK, there regexes were discussed in the previous post this is mostly just their application. This is a C# 2.0 enhancement of a C# port of YUI Compressor 's CSS minification code Since I was doing this is C# I took full advantage of it's regex...
-
NOTE: All the regex referenced on this page written by me are using IgnoreCase = true I was looking at the regexes used in the YUI Compressor to minify CSS and came up with a couple of more that I think could help the process. The code and port I was...
-
The square brackets character class is one of the more misunderstood of the basic regex features. This feature is supported in virtually all regex implementations. In fact off the top of my head I don't know an implementation that doesn't support...
-
One thing I've noticed among rookie regex users is that they focus way too much on what they are trying to match and not on where they are trying to match it from. There is a tenancy to drastically under estimate the importance of their source data,...
-
Yes I know, there are many other JavaScript regex testers available. Why did I create yet another? RegexPal brings several new things to the table for such web-based apps, and in my (biased) opinion it's easier to use and more helpful towards learning...
-
Excited by the fact that I can mimic atomic groups when using most regex libraries which don't support them, I set my sights on another of my most wanted features which is commonly lacking: conditionals (which provide an if-then-else construct). Of...
-
Who should be using regular expressions? This has been on my mind for a while, there are some people shouldn't be using regular expressions. People who don't know what regular expressions are for. Now you can use regexes in a variety of ways,...
-
Hello boys and girls. Wow it's been a while since I've done this. I want to touch on a very useful but often overlooked feature of regex, grouping. While I haven't been blogging I have been active on a message board here or there. A question...
-
I have recently written an extended JavaScript regular expression constructor which I’ve called XRegExp. This script is very small (the minified version weighs in at 937 bytes), and it adds support for two simple but powerful additional flags beyond...
-
how to remove the content inside the <style> tag. for eg: <html> <style>Shankar</style> </html> I want to remove <style>Shankar</style> from the above text, Can anybody help me in writing the regular expression...
-
Hi guys, We all have been there, we have some text we need to allocate using a regex, and we cannot really define what can be between 2 sub matches, so we simply uses the easiest solution .*? . You will probebly wont notice the problem, until the day...
-
It seems that many people have a basic understanding of how a regular expressions works. Lots of people will ask me, and probably many of you, for help in writing regular expressions. A lot of these people have a basic idea of what they need when it is...
-
Hi there, In the past months there is a new trend in the regexadvice.com community site. Users are posting a blog post with simple trivial questions which should be posted at the discussions forums. As far as I understand, writing a blog about a specific...
-
Hi guys, Long time since I've written here, well let's just say it's been busy at work and home front! Today I had to fix a web crawler due a regex that failed to track a tax amount. The regex was not written by me, but it reminded me what...
-
Hi I am new to regex. how to write regex expression for all date formats. can i write a single expression or need to write more expressions. Thanks Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!...
-
Hi, I have a Text file that contains Ideograph,with this link i came to know that we I can make a check for Ideograph through Regular expression ,http://msdn2.microsoft.com/en-us/library/aa293063(VS.71).aspx but it doesn't seem to be working ,Can...
-
http://www.xkcd.com/c208.html xkcd has many great comics, although this is the only regex one that I know of. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!...
-
O'Reilly decided to release all of their pocket references as PDFs. You can get a copy of the Regex Pocket Reference for $4.99. I've really liked the trend of releasing books in PDF, especially references, because it means I can travel with my...
-
Here's the scenario There are a list of codes seperated by "comma" like so: codes: "Code1 code2 F/UN=\"value1 value2\" code3 code4" Now I need to split this string such that i get all the list of codes into an array of...
-
Suppose there is some string like: "This is \"body text\" sample \"body text\" no more" Now I need to find matches for all spaces which are not part of the quoted text. (i.e, the space in between the "body text"...
-
I came to this site because I was looking for patterns to help me in creating a syntax highliting editor.... I was finding it increasingly difficult to formulate patterns that are effective in meeting every possibility there is.... The first issue I had...
-
i need a regexp which can allow any String which do not contain Alphabets. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!...
-
If you want to write good, efficient regular expressions, than you would like to know, and understand how the regex object is thinking. What happens when you execute a regex ? I'll try to put some light on that using conclusions I have made aft er...