homepage Welcome to WebmasterWorld Guest from 54.205.52.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Regular Expression
Simple String Match
Mr_Brutal




msg:956605
 8:57 am on Apr 14, 2005 (gmt 0)

Hello,

Im working in .NET and im trying to make sure a reference entered by the user is in the correct format before using the number part of it to look up their details. Im trying to match all strings that start with WEB and are followed by a number and I want to then use the number.

I have: WEB\d as my regular expression and although this matches what I want it also lets through strings such as: "WEB1 t" and "WEB1 WEB2", which I don't want.

Please tell me what else I should do to my pattern string to get this to work. I have been researching this but im just not feeling "IT" this morning.

Cheers

 

Mr_Brutal




msg:956606
 9:24 am on Apr 14, 2005 (gmt 0)

Doh!

I got it its the $ at the end to signify the end of the string. A cup of coffee and a post here clears the head i suppose.

Cheers anayway

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved