VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Using Regular Expressions

by Ed Porter (3 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

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

Download Using Regular Expressions

Download Using Regular Expressions (11 KB)

Using Regular Expressions Comments

No comments have been posted about Using Regular Expressions. Why not be the first to post a comment about Using Regular Expressions.

Post your comment

Subject:
Message:
0/1000 characters