Hello,
I'm having troubles with the Regex options.
I'm writing a program to retrieve info from an intranetpage
so my input is the sourcecode of a webpage.
Now I need to retrieve info and I want to have the text split.
garbage
Operations (France Paris)
<table>.........<\table>
Operations (India Chennai)
<table>.......<\table>
(note, there are only 5 countries we work with)
garbage
Now I want to find a way to have the string searched and put it in a string()
So search the string for Operations (one of the 5 possible countries) if it occures, split until the next </table>
But I can't even get the regex to find the pattern "operations (india chennai)"
I've been messing with escapechars etc but he just don't cut the string
tekst is from the type String and contains the full sourcecode of the webpage
Can somebody please help me and put me on the right track
I'm having troubles with the Regex options.
I'm writing a program to retrieve info from an intranetpage
so my input is the sourcecode of a webpage.
Now I need to retrieve info and I want to have the text split.
garbage
Operations (France Paris)
<table>.........<\table>
Operations (India Chennai)
<table>.......<\table>
(note, there are only 5 countries we work with)
garbage
Now I want to find a way to have the string searched and put it in a string()
So search the string for Operations (one of the 5 possible countries) if it occures, split until the next </table>
But I can't even get the regex to find the pattern "operations (india chennai)"
I've been messing with escapechars etc but he just don't cut the string
VB.NET:
Dim searchPattern As String = "(\btitles)"
Dim tmp() As String = Regex.Split(tekst, SearchPattern)
Can somebody please help me and put me on the right track