minority
12-10-2005, 04:10 PM
Hi
I got more of a question rather than that of a problem (Although a problem too)
Basically i have a sentence (String) that is in questionin and need to split it into single words so i need to remove all of the ,.""'';:!&^?/\ spaces etc.
when use this function it seems to slightly work
Textdelimiter = “/<[^>]*>/g “ removing all of the brackets etc but not full stops.
I know it is a regular expression but thought i could add to it eg full stop question marks all the things that must be removed to leave pure strings of words.
So when I add this it goes pair shape
Textdelimiter = “/.,?\|&+-~#{}<[^>]*>/g “
questionOut = Split(questionin,textdelimiter)
So basically I am just asking if either I need to add it a certain way or is there a different way of securing what i am trying to achieve?
Thanks for any help
I got more of a question rather than that of a problem (Although a problem too)
Basically i have a sentence (String) that is in questionin and need to split it into single words so i need to remove all of the ,.""'';:!&^?/\ spaces etc.
when use this function it seems to slightly work
Textdelimiter = “/<[^>]*>/g “ removing all of the brackets etc but not full stops.
I know it is a regular expression but thought i could add to it eg full stop question marks all the things that must be removed to leave pure strings of words.
So when I add this it goes pair shape
Textdelimiter = “/.,?\|&+-~#{}<[^>]*>/g “
questionOut = Split(questionin,textdelimiter)
So basically I am just asking if either I need to add it a certain way or is there a different way of securing what i am trying to achieve?
Thanks for any help