VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Using Regular Expressions

Ed Porter  (3 Submissions)   String Manipulation   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

Regular Expressions is a very powerful tool for string manipulations. I have developed an inhouse tool to to test and optimize pattern code. A tutorial is included that will get the new user "up to speed" in seconds!

Assumes
This code requires VB6.0 and the richtextbox. It will work on Windows95/98/Nt/XP

API Declarations
Private Declare Function ClientToScreen Lib "user32" _
(ByVal hWnd As Long, lpPoint As Any) As Long ' lpPoint As POINTAPI) As Long
Private Declare Function LBItemFromPt Lib "comctl32.dll" _
(ByVal hLB As Long, ByVal ptX As Long, ByVal ptY As Long, _
ByVal bAutoScroll As Long) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long ' <---
Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Private Type POINTAPI ' pt
X As Long
Y As Long
End Type
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Private Const WM_SETREDRAW = &HB

Rate Using Regular Expressions (6(6 Vote))

Download Using Regular Expressions

Using Regular Expressions Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters