ASPFriends.com 'aspngregexp' list Archive - October 2001
Messages
Page: 1
Regular Expressions (7 replies)
ASPFriends.com 'aspngregexp' list
Copied from [aspngibuyspy] to [aspngregexp] by darthcarroll@asplists.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. NextPart 001 01C14AD0.446EA740 Content Type: text/plain Hi I am doing some modifications on the user handling part of the store. I need to verify when adding a user that the username is betwe...
(.*) ? (7 replies)
ASPFriends.com 'aspngregexp' list
Hi Everyone.. I'm trying to read in a file (sample below) and sort the data (to eventually be put in a database) based upon whether it's "Local Path", "Remote Path", etc. I read in all the lines separately. I get rid of the first few lines (the ones beginning with "//") with a select case statement and then have case else Dim Expr as string&#":; (.*)" Dim SearchReg as New RegEx(Expr) Dim SearchMat...
convert to hyperlink (6 replies)
ASPFriends.com 'aspngregexp' list
How would I search a string for URL's (http:// and www.) and than replace the URL's with the HTML hyperlink around it ( a href ... /a )? Any help appreciated, Yannick Smits
backslash in replace (2 replies)
ASPFriends.com 'aspngregexp' list
Hi, I can't get the following to work: Regex.Replace("d:\\step.com\\www", "com\\www", "com") ; I also tried with the @ method. It keeps giving me: d:\step.com\www as a result instead of 'd:\step.com' In VB I got it to work with: Replace("d:\step.com\www", "com\\www", "com") But not in C# thanks, Yannick
Help me to improve this URL replacing RegExp (4 replies)
ASPFriends.com 'aspngregexp' list
I have this code in ASP.NET: Function FetchURL( strMessage As String ) Dim strPattern As String "(? url http://(?:[\w ] \.) [\w ] (?:/[\w ./?%&~ ]*[^.])?)" Dim strReplace As String " a href '${url}' target ' blank' ${url} /a " Dim strInput As String strMessage Dim strResult As String strResult Regex.Replace( strInput, strPattern, strReplace ) strPattern "(? !http://)(? url www\.(?:[\w ] \.) [\w ] ...
Is there a RegExp to require a value? (3 replies, VIP)
ASPFriends.com 'aspngregexp' list
Hi List, I'm very new to Regular Expressions, so please excuse me if I'm missing something very basic. I'm using a RegExp validator control around an email address textbox (works great), and I'm wondering if there's a way to also specify in the RegExp that this field is required. I'm just trying to avoid using both a RegExp validator and a required field validator on the same control is this possi...
Replace <BR> with hex 0d 0a (3 replies)
ASPFriends.com 'aspngregexp' list
How can I replace the search for &quot; BR &quot; with the hex representation of a line feed (\0d\0a) for text files? If I pass &quot;\x0d\x0a&quot; in the Replace function, it simply replaces the BR with a &quot;\x0d\x0a&quot;. How can I force it to interpret the actual hex values and write those to the string, which I am sending to a .txt file? Thanks, ROB
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