domain
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngregexp' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

asp.NET student
hi,
I'm looking for regEx code to do the following:

http://aaaaa.bbbbb.domain.com

I need to capture the first and second portions of the URL, aaaaaa and bbbbb ... the length will vary.

help is appreciated!
Reply to this message...
 
    
Scott Watermasysk (VIP)
Try searching on http://regexlib.com <http://regexlib.com> . This is a great
resource.
-Scott

-----Original Message-----
From: asp.NET student [mailto:Click here to reveal e-mail address]
Sent: Friday, May 17, 2002 2:51 PM
To: aspngregexp
Subject: [aspngregexp] domain

hi,
I'm looking for regEx code to do the following:

http://aaaaa.bbbbb.domain.com <http://aaaaa.bbbbb.domain.com>

I need to capture the first and second portions of the URL, aaaaaa and
bbbbb ... the length will vary.

help is appreciated!

| [aspngregexp] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp = JOIN/QUIT |
http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Wayne King
This is a multi-part message in MIME format.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
    boundary="----_=_NextPart_001_01C1FDE9.9F6F1F07"

------_=_NextPart_001_01C1FDE9.9F6F1F07
Content-Type: text/plain;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How about this pattern:
=20
http://(<sub1>[^.]+).(<sub2>[^.]+).
=20
The capturing groups are named "sub1" and "sub2".
=20
-----Original Message-----
From: asp.NET student [mailto:Click here to reveal e-mail address]
Sent: Friday, May 17, 2002 11:51 AM
To: aspngregexp
Subject: [aspngregexp] domain

hi,
I'm looking for regEx code to do the following:
=20
http://aaaaa.bbbbb.domain.com" target="_blank">http://aaaaa.bbbbb.domain.com
=20
I need to capture the first and second portions of the URL, aaaaaa and =
bbbbb ... the length will vary.
=20
help is appreciated!
=20

------_=_NextPart_001_01C1FDE9.9F6F1F07
Content-Type: text/html;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">

<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002>How about this pattern:</SPAN></FONT></DIV>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002>http://(<sub1>[^.]+).(<sub2>[^.]+)=
.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002>The capturing groups are named "sub1" and=20
"sub2".</SPAN></FONT></DIV>
<DIV><FONT face=3D"Bookman Old Style" color=3D#008000 size=3D2><SPAN=20
class=3D172542720-17052002></SPAN></FONT><FONT face=3D"Bookman Old =
Style"=20
color=3D#008000 size=3D2><SPAN =
class=3D172542720-17052002></SPAN></FONT> </DIV>
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> asp.NET student=20
[mailto:Click here to reveal e-mail address]<BR><B>Sent:</B> Friday, May 17, 2002 =
11:51=20
AM<BR><B>To:</B> aspngregexp<BR><B>Subject:</B> [aspngregexp]=20
domain<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>  I'm looking for regEx code to do =
the=20
following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://aaaaa.bbbbb.domain.com" target="_blank">http://aaaaa.bbbbb.domain.com">http://aaaaa.bbbbb.domain.com" target="_blank">http://aaaaa.bbbbb.domain.com</A><=
/FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>  I need to capture the first and =
second=20
portions of the URL, aaaaaa and bbbbb ... the length will=20
vary.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>  help is =
appreciated!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>

------_=_NextPart_001_01C1FDE9.9F6F1F07--

--------------InterScan_NT_MIME_Boundary--

Reply to this message...
 
 




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