Click here to Skip to main content
15,911,039 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: replace all caracters in a string that are not one of 0-9 or a-z or A-Z with a space... Pin
Scott Dorman11-Mar-08 5:01
professionalScott Dorman11-Mar-08 5:01 
GeneralRe: replace all caracters in a string that are not one of 0-9 or a-z or A-Z with a space... Pin
Guffa11-Mar-08 7:50
Guffa11-Mar-08 7:50 
Questionpress a key to play the audio Pin
meghanaVishwa11-Mar-08 4:23
meghanaVishwa11-Mar-08 4:23 
GeneralRe: press a key to play the audio Pin
Scott Dorman11-Mar-08 5:11
professionalScott Dorman11-Mar-08 5:11 
GeneralRe: press a key to play the audio Pin
Christian Graus11-Mar-08 8:30
protectorChristian Graus11-Mar-08 8:30 
Generalpress a key to play the audio Pin
meghanaVishwa11-Mar-08 4:10
meghanaVishwa11-Mar-08 4:10 
GeneralRe: press a key to play the audio Pin
Smithers-Jones11-Mar-08 4:16
Smithers-Jones11-Mar-08 4:16 
GeneralPlease help convert this code to VB.NET code... Pin
Support12311-Mar-08 3:54
Support12311-Mar-08 3:54 
Hi,

I beleive this sample code is in C#:

string cleanString = String.Empty;<br />
Regex reg = new Regex("[A-Z]|[a-z]");<br />
MatchCollection coll = reg.Matches(<mystringgoeshere>);<br />
for(int i = 0; i < coll.Count; i++)<br />
{<br />
cleanString = cleanString + coll[i].Value;<br />
}</mystringgoeshere>


See, i want to remove all characters that do not fall in the A-Z or a-z OR 0-9 category AND replace it with a space...
example test123t3er = test t er

Am i wrong in saying that the Regex reg = Regex("[A-Z]|[a-z]") CAN IT BE: Regex reg = Regex("[A-Z]|[a-z]|[0-9]") ???

AND the cleanString = cleanString + coll[i].Value;
CAN I DO A TEST: IF(coll[i].Value == String.Empty) THEN cleanString = cleanString + " " ELSE cleanString = cleanString + coll[i].Value ???? - in this way i add space if the character is not in the above category????

So please help me convert the very top section of code and i will build from there...

Thank you in advance...

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: Please help convert this code to VB.NET code... Pin
Dave Doknjas11-Mar-08 14:00
Dave Doknjas11-Mar-08 14:00 
Questionpress a key to play the audio [modified] Pin
meghanaVishwa11-Mar-08 3:41
meghanaVishwa11-Mar-08 3:41 
GeneralRe: press a key to play the audio Pin
Smithers-Jones11-Mar-08 4:03
Smithers-Jones11-Mar-08 4:03 
QuestionHow to pass the integer parameter fields to Crystal Report through .net 2003? Pin
sathyan_829411-Mar-08 2:08
sathyan_829411-Mar-08 2:08 
AnswerRe: How to pass the integer parameter fields to Crystal Report through .net 2003? Pin
Smithers-Jones11-Mar-08 4:20
Smithers-Jones11-Mar-08 4:20 
AnswerRe: How to pass the integer parameter fields to Crystal Report through .net 2003? Pin
Christian Graus11-Mar-08 8:31
protectorChristian Graus11-Mar-08 8:31 
QuestionDatalist in VB.NET Pin
nicksregistrations11-Mar-08 1:52
nicksregistrations11-Mar-08 1:52 
GeneralRe: Datalist in VB.NET Pin
Paul Conrad21-Mar-08 9:39
professionalPaul Conrad21-Mar-08 9:39 
GeneralWebbrowser control autofill problem Pin
Ahmad Zaidi11-Mar-08 0:56
Ahmad Zaidi11-Mar-08 0:56 
QuestionNeed Calender cum scheduler Control for VB.NET Pin
Jats_4ru11-Mar-08 0:36
Jats_4ru11-Mar-08 0:36 
GeneralRe: Need Calender cum scheduler Control for VB.NET Pin
Tom Deketelaere11-Mar-08 5:16
professionalTom Deketelaere11-Mar-08 5:16 
GeneralRe: How to write customized Calender control in VB.NET [modified] Pin
Jats_4ru11-Mar-08 5:30
Jats_4ru11-Mar-08 5:30 
GeneralRe: How to write customized Calender control in VB.NET Pin
Smithers-Jones11-Mar-08 8:41
Smithers-Jones11-Mar-08 8:41 
GeneralRe: How to write customized Calender control in VB.NET Pin
Jats_4ru11-Mar-08 18:45
Jats_4ru11-Mar-08 18:45 
QuestionDynamic Dynamic Array Pin
MatthysDT11-Mar-08 0:33
MatthysDT11-Mar-08 0:33 
GeneralRe: Dynamic Dynamic Array Pin
Christian Graus11-Mar-08 0:43
protectorChristian Graus11-Mar-08 0:43 
Generalhi Pin
ershad10-Mar-08 23:46
ershad10-Mar-08 23:46 

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.