ASPFriends.com 'aspngregexp' list Archive - July 2001
Messages
Page: 1
find previous word (3 replies)
ASPFriends.com 'aspngregexp' list
First I'm looking for some really good resource about Regexp's (as most of the questions on this maillist are mine : )) Second I look for a regex that can find the word before a certain string. For example in the string: "The watertemp is 20 degrees" should return "20" Can this be done with regexp's or should i use the string.methods? Thanks, Yannick
Word boundaries (5 replies, VIP)
ASPFriends.com 'aspngregexp' list
I'm trying to come up with a regex that matches a dollar amount, i.e. $12.00 or $1.50 but not $1.234 \$[0 9] (\.[0 9][0 9])? works up to a point, but it matches more than 2 decimal digits. I want it to fail if there are more than 2, so I figured that \b word boundary would work. \b\$[0 9] (\.[0 9][0 9])?\b but it doesn't. If I remove the \$ it works as I excpect, but the escaped dollar seems to pu...
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification