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
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com