.NETGURU
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...
 
 




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
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