Click here to Skip to main content
15,916,601 members
Home / Discussions / C#
   

C#

 
GeneralRe: advanced problem Pin
Colin Angus Mackay26-Jun-05 11:53
Colin Angus Mackay26-Jun-05 11:53 
GeneralRe: advanced problem Pin
Dave Kreskowiak26-Jun-05 12:11
mveDave Kreskowiak26-Jun-05 12:11 
Questionhow can i do that Pin
snouto25-Jun-05 5:37
snouto25-Jun-05 5:37 
AnswerRe: how can i do that Pin
Lars-Inge Tønnessen25-Jun-05 13:07
Lars-Inge Tønnessen25-Jun-05 13:07 
AnswerRe: how can i do that Pin
Dave Kreskowiak26-Jun-05 9:04
mveDave Kreskowiak26-Jun-05 9:04 
GeneralRe: how can i do that Pin
snouto26-Jun-05 9:20
snouto26-Jun-05 9:20 
GeneralRe: how can i do that Pin
Dave Kreskowiak26-Jun-05 12:14
mveDave Kreskowiak26-Jun-05 12:14 
Generalregex guru pls Pin
g00fyman25-Jun-05 4:51
g00fyman25-Jun-05 4:51 
i am trying to get all teh text content from a web page, (text only, no HTML)

so i am using this regex
<code>
private void ExtractPageContent(string HTMLString)
{
try
{
Regex regexObj = new Regex("<[^>]*>|\\\\n|(&\\w+;)|[0-9.,]|[;:,.'\"\\[\\]!@#$%^&*()-]\r\n");
string resultString = regexObj.Replace(HTMLString, "");
this.words = resultString.Split(' ');
}
catch (ArgumentException ex)
{
// Syntax error in the regular expression
}
}
</code>

but this is not giving me spaces between the words so i can then split on the space to populate a word array.

is there a way to acheive this while the regex is iterating the string ?
or am i taking th ewrong approach to this ?

kind regards,
g00fy
GeneralRe: regex guru pls Pin
User 665825-Jun-05 5:27
User 665825-Jun-05 5:27 
GeneralRe: regex guru pls Pin
g00fyman25-Jun-05 14:25
g00fyman25-Jun-05 14:25 
GeneralAlways search before you ask please Pin
DavidNohejl25-Jun-05 14:52
DavidNohejl25-Jun-05 14:52 
GeneralRe: Always search before you ask please Pin
g00fyman25-Jun-05 15:00
g00fyman25-Jun-05 15:00 
GeneralRe: Always search before you ask please Pin
DavidNohejl25-Jun-05 15:13
DavidNohejl25-Jun-05 15:13 
GeneralRe: Always search before you ask please Pin
g00fyman25-Jun-05 15:26
g00fyman25-Jun-05 15:26 
GeneralSend common files to printer Pin
DukeII25-Jun-05 2:15
DukeII25-Jun-05 2:15 
Generalupdating a dataset Pin
steve_rm24-Jun-05 23:59
steve_rm24-Jun-05 23:59 
GeneralMS Money like software Pin
Jassim Rahma24-Jun-05 23:48
Jassim Rahma24-Jun-05 23:48 
GeneralRe: MS Money like software Pin
Colin Angus Mackay25-Jun-05 2:49
Colin Angus Mackay25-Jun-05 2:49 
GeneralRe: MS Money like software Pin
Anonymous26-Jun-05 11:48
Anonymous26-Jun-05 11:48 
GeneralRe: MS Money like software Pin
Colin Angus Mackay26-Jun-05 11:51
Colin Angus Mackay26-Jun-05 11:51 
GeneralRe: MS Money like software Pin
Luis Alonso Ramos25-Jun-05 17:15
Luis Alonso Ramos25-Jun-05 17:15 
Generalpopulating a treeview Pin
deep724-Jun-05 21:33
deep724-Jun-05 21:33 
GeneralRe: populating a treeview Pin
Lars-Inge Tønnessen25-Jun-05 13:02
Lars-Inge Tønnessen25-Jun-05 13:02 
Questionhow sever out-put Music/audio to Clients Pin
Sheharyar_JH24-Jun-05 20:26
Sheharyar_JH24-Jun-05 20:26 
AnswerRe: how sever out-put Music/audio to Clients Pin
mhmo24-Jun-05 21:29
mhmo24-Jun-05 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.