In PHP is one function for extracting urls from the page, I would love
to convert to VB.NET.
This is how it looks in php:
preg_match_all("{
\b
$urls :
[$any] +?
(?=
[$punc] *
[^$any]
|
$
)
}x", $html,
$matches);
I will need someone who could also explain how to extract part of the
website between some specific tags, using this kind of function in
vb.net.
Thanks for all your help.
Sincerely,
Martin
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- 4 1409
Martin,
I cannot read PHP, so I'm not sure of what your function is really doing...
Have you look at using a System.Text.RegularExpression.RegEx to extract urls
from a page?
The following example searches an input string (a page for example) and
prints out all the href values... http://msdn.microsoft.com/library/de...ngforhrefs.asp
Hope this helps
Jay
"Martin Ho" <ma******@ratebusiness-dot-com.no-spam.invalid> wrote in message
news:3f********@127.0.0.1... In PHP is one function for extracting urls from the page, I would love to convert to VB.NET.
This is how it looks in php:
preg_match_all("{ \b $urls : [$any] +?
(?= [$punc] * [^$any] | $ ) }x", $html, $matches);
I will need someone who could also explain how to extract part of the website between some specific tags, using this kind of function in vb.net.
Thanks for all your help. Sincerely, Martin ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
* ma******@ratebusiness-dot-com.no-spam.invalid (Martin Ho) scripsit: In PHP is one function for extracting urls from the page, I would love to convert to VB.NET.
Have a look at the chapters about "Regular Expressions" in the .NET
documentation (class 'System.Text.RegularExpressions.Regex').
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
This was very helpful.
Thank you very much.
Martin
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Hi Martin,
I cannot read PHP either,
But it looks like a normal url extraction from the data in the Get.
You can look to the regex,
But I use for that something as
Dim Mydatastring = MyUrl.substring(myUrl.indexoff("?")+1)
Or
Mydatastringar () = split.MyUrl("?)
Mydatastring = Mydatastringar(1)
I hope this helps,
Cor
"Martin Ho" <ma******@ratebusiness-dot-com.no-spam.invalid> schreef in
bericht news:3f********@127.0.0.1... In PHP is one function for extracting urls from the page, I would love to convert to VB.NET.
This is how it looks in php:
preg_match_all("{ \b $urls : [$any] +?
(?= [$punc] * [^$any] | $ ) }x", $html, $matches);
I will need someone who could also explain how to extract part of the website between some specific tags, using this kind of function in vb.net.
Thanks for all your help. Sincerely, Martin ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000
Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=--- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Drew |
last post by:
Here at work, we have 2 copies of our policies and procedures. We have a
Word format, and a PDF format. The problem is that when a policy is changed
(there is a commitee meeting every month), the...
|
by: RCS |
last post by:
Okay, a rather 'interesting' situation has arisen at a place I work: I need
to convert a database from Access to something that can be used over the
web.
I am currently maintaining and...
|
by: Nelson |
last post by:
In my web form, I am converting all lower case letters to upper case when
the user types the characters in the edit boxes. I am achieving that by
injecting client side script (onkeyup event) for...
|
by: Robert |
last post by:
I have a series of web applications (configured as separate applications) on
a server.
There is a main application at the root and then several virtual directories
that are independant...
|
by: Clark Stevens |
last post by:
I have a program that I'm converting from VB6 to VB.NET. It reads in a text
file containing barcode numbers and their corresponding descriptions. Then
the user enters the barcode number and the...
|
by: Rich |
last post by:
(1) Is there a better place to pose the question below?
(2) I am starting to convert my enterprise solution from VS 2003 (.NET
v1.1.4322) to VS 2005 Professional (.NET v2.0.50727).
The entire...
|
by: Dilip |
last post by:
Recently in our code, I ran into a situation where were stuffing a
float inside a double. The precision was extended automatically
because of that. To make a long story short, this caused...
|
by: nvx |
last post by:
Hi,
I'm looking for a simple way to convert a Double to a String exactly
the .ToString() does, except these two differences:
- the number of decimals is given (rounding is applied if
necessary),...
|
by: Les Caudle |
last post by:
I've inherited a .NET 1.0 app that I'm converting to 2.0.
It contains a number of .xsd files (.xsd, .xsx, .cs) which get converted to
(.xsd, .xsx, .xss, .xsc, .cs, .Designer.cs).
The problem...
|
by: RRick |
last post by:
I have a unix C++ project that needs to be converted over to windows visual studio. I'm not sure of the exact version of VS, but it's a recent version, probabIy 2003 or 2005.
I would like the...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |