. Topicala Page Index Token

A Journal about the experiences I have developing little applications in C#, Perl, Html and Javascript and talking about things new things that I use. Always Geeky; Always Nerdy; Always poor Grammer!

I am a Software Analyst Developer working in Southport, England but living in Liverpool. I develop mainly in C# and ASP.Net. I have been developing comercial software for several years now. I maintain this site (hosted at SwitchMedia UK) as a way of exploring new technologies (such as AJAX) and just generally talking about techie geek issues. This site is developed through a host of Perl scripts and a liberal use of Javascript. I enjoy experimenting with new technologies and anything that I make I host here.

Quick Search

Web www.kinlan.co.uk

Monday, October 31, 2005

RE: Regex 101 Exercise S2 - Verify a string is a hex number

Eric Gunnerson Ask a Question about a simple question about Regular Expressions:

Welcome to week #2 of our class. This is a simple one:


S2 - Verify a string is a hex number


Given a string, verify that it contains only the digits 0-9 and the letters a through f (either in uppercase or lowercase).


Answer/discussion on Friday...


[Via MSDN Blogs]

My answer for this would have to be

^[A-Fa-f0-9]*$

However I know that it means that you can start a number with a 0 which may or may not be what he wants.

Technorati Tags
[feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed], [feed]

Related Wikipedia Documents
, , , , , ,

My Related Documents
, ,

Related Amazon Books
A Programmer's Introduction to C# 2.0: /, A Programmer's Introduction to C# (.NET Developer Series): /, Regular Expression Pocket Reference: /, Regular Expression Recipes: A Problem-Solution Approach: /, Regular Expression Recipes for Windows Developers: a Problem-solution Approach: /, Programming C#: /, Windows Forms Programming in C#: /, ASP.NET Unleashed (Unleashed S.): /, MCAD Training Guide 70-316: Developing and Implementing Windows-based Applications with C# and Visual Studio.NET: /

Related Images

Comments: [Add New]