Quantcast
Channel: Code Green Software » Regular Expressions
Browsing all 5 articles
Browse latest View live

C#: Regular Expressions

I’ve decided to document what little knowledge I have on using Regular Expressions in C#. Nothing grand, just a list of formats, special characters and usage. Control Characters: Character Matches ....

View Article



Credit Card Regular Expression

So for the project I’m currently working on I need to verify credit card numbers input by the user. So I found a regular expression online that would do almost all of it, but it lacked a few necessary...

View Article

Determine Credit Card Type with Javascript

I don’t understand why most online commerce sites ask the user to select what type of credit card they are going to enter instead of discerning the type programmatically and displaying feedback to the...

View Article

Javascript: 1337-Speak Translator

So I borrowed this idea from a friend of mine who wrote the original implementation in C#, of which I ported to javascript because, well, I like playing in javascript. Here’s a working example: This is...

View Article

C#: Lower Case All XML Tags with Regex

Sometimes when accepting an XML document from an uncontrolled source using Linq to XML, it’s useful to convert all tags and attributes to lower case before processing the XML. This is because Linq to...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images