Put the knife down and take a green herb, dude.
One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com
Using 89% of the same design the blog had in 2001.
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.
MarkUpDown is the best Markdown editor for professionals on Windows 10.
It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.
Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor.
Stop looking. MarkUpDown is the app you're looking for.
|Wednesday, May 12, 2004|
Regular Expressions in Visual Basic 6.0 (VB6):
As I've complained, finding VB6 tutorials now is more difficult since Googling "Visual Basic" pulls back as many or more VB.NET examples [for things like regular expressions] as VB6. Anyhow, here's VB6 Regular Expression code, "inspired" by this tutorial on using regexp from vbscript.
' Step one: Include a reference to "Microsoft VBScript Regular Expressions 5.5"
' in your project.
' From: http://www.brettb.com/VBScriptRegularExpressions.asp
Public Function isMatchFound(strToCheck As String, strRegExpPattern As String)
On Error GoTo errHand
Dim rexp As RegExp
Dim bReturn As Boolean
bReturn = False ' assume not a match
Set rexp = New RegExp
'This object has three properties: Pattern, IgnoreCase and Global. Pattern
'specifies the Regular Expression that should be searched for. IgnoreCase should
'be True or False depending on whether the search should be case sensitive (the
'default is true). Finally, the Global property should be set to True if the
'search should match all occurrences of the pattern, or False if just the first
'occurrence should be matched:
.Pattern = strRegExpPattern
.IgnoreCase = True
.Global = True
'Once the RegExp object’s properties have been set, it is time to test the
'Regular Expression. This is done using something like the line below. This uses
'the Test method of the RegExp object to see if the Regular Expression is found
'in the StringToSearch string.
bReturn = rexp.Test(strToCheck)
'Finally, the RegExp object is destroyed since it is no longer required.
Set rexp = Nothing
isMatchFound = bReturn
MsgBox Err.Number & " :: " & Err.Description
isMatchFound = False ' return false on error
As an aside, I'm using the new Blogger interface. Combined with Google's GMail, nobody is doing a better job providing a full-functional application crossplatform using just a browser (allowing you to make your OS, computer, even location unimportant). I can check out a preview of my post with a few keystrokes (like in GMail where I can check email, compose, etc with single keys, "elm-like"), and it's even got a nice "rich text-like" editor box. Combined with on-the-fly spellcheck like you find in OmniWeb, these are some of the best apps out there and aboslutely put ActiveX and Java applet kludges to shame.
posted by ruffin at 5/12/2004 09:34:00 AM
All posts can be accessed here:
Just the last year o' posts: