Click here to Skip to main content
16,004,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Ashfield12-Nov-08 1:09
Ashfield12-Nov-08 1:09 
General[Message Deleted] Pin
srisant12-Nov-08 1:29
srisant12-Nov-08 1:29 
GeneralRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Ashfield12-Nov-08 2:05
Ashfield12-Nov-08 2:05 
GeneralRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Jon_Boy12-Nov-08 1:52
Jon_Boy12-Nov-08 1:52 
QuestionRegular Expression in VB 6.0 Pin
indian14311-Nov-08 23:18
indian14311-Nov-08 23:18 
AnswerRe: Regular Expression in VB 6.0 Pin
Simon P Stevens11-Nov-08 23:51
Simon P Stevens11-Nov-08 23:51 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 0:05
indian14312-Nov-08 0:05 
GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 0:18
Simon P Stevens12-Nov-08 0:18 
The keyword "Like" in VB actually is a very weak form of regular expression. The performance problem here is that you are iterating through every single character. With a proper regular expression you can match against the whole string in one go.

You need to create a new Regex object, and set it up with the required pattern string.

then you can call Match on the regex object and check the Success flag.

To work out the pattern string you need to use, look at the MSDN link I provided in my last reply.

You can find a reference to the regular expression pattern language here[^]

Also, try working through this tutorial[^] to start you off.

Simon

AnswerRe: Regular Expression in VB 6.0 Pin
Rajesh Anuhya12-Nov-08 0:21
professionalRajesh Anuhya12-Nov-08 0:21 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 0:44
indian14312-Nov-08 0:44 
GeneralRe: Regular Expression in VB 6.0 Pin
Rajesh Anuhya12-Nov-08 0:54
professionalRajesh Anuhya12-Nov-08 0:54 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 1:03
indian14312-Nov-08 1:03 
GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 1:15
Simon P Stevens12-Nov-08 1:15 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 1:33
indian14312-Nov-08 1:33 
GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 2:54
Simon P Stevens12-Nov-08 2:54 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 3:22
Jon_Boy12-Nov-08 3:22 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 3:42
professionalPaul Conrad12-Nov-08 3:42 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 4:02
indian14312-Nov-08 4:02 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 4:07
professionalPaul Conrad12-Nov-08 4:07 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 6:09
Jon_Boy12-Nov-08 6:09 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 6:38
professionalPaul Conrad12-Nov-08 6:38 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 4:09
Jon_Boy12-Nov-08 4:09 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 3:37
indian14312-Nov-08 3:37 
QuestionSQL query problem Pin
sunil goyalG11-Nov-08 22:53
sunil goyalG11-Nov-08 22:53 
AnswerRe: SQL query problem Pin
nishkarsh_k11-Nov-08 23:13
nishkarsh_k11-Nov-08 23:13 

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.