Re: Is there any regexp and hashtable management in Excel VBA?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Thu, 15 Feb 2007 18:52:40 +0100, "Patrice" <patrice_nospam_.chevee@xxxxxxx>
wrote:

Tom Ogilvy wrote:
http://support.microsoft.com/default.aspx?scid=kb;en-us;818802&Product=vbb
HOW TO: Use Regular Expressions in Microsoft Visual Basic 6.0

Should work for VBA as well.

I can't say anything about hashtables except there is nothing built
in.


Mmmm... I tried a lot of things, but it seems evident that even Excel for XP
does not manage Regexps. I also tried to create a variable:

Dim X as Regexp

But the keyword "Regexp" is not available. That is too bad: I was forced to
use Perl in order to perform some lexical treatment (removing blang spaces,
formatting chains, and so on). THis was not convenient since I had to save
the text on the hard disk, perform the treatment with Perl, then import the
resulting text from the hard disk. Some things did not change since 1980...


You need to first set a reference:

One method -- on the VBA Top Menu Bar select Tools/References and select
Microsoft VBScript Regular Expressions 5.5




--ron
.



Relevant Pages

  • Re: Frustration with regexes in Word, VBA, VBScript
    ... The "trick" is that RegExp is supplied as a COM object from the Scripting ... literally a part of VBA, there's no VBA help topic for it. ... paragraph/style formatting, if you're unlucky enough to replace paragraph ... don't care about losing character formatting. ...
    (microsoft.public.word.vba.general)
  • Re: regexp advice
    ... > I am working on a "file parsing" app using regular expressions. ... based on the User-defined tokens. ... > set string "N0010G01X10Y12M10" ... > foreach regexp $regList { ...
    (comp.lang.tcl)
  • Re: String splitten und Mail-Adresse extrahieren
    ... >"Microsoft VBScript Regular Expressions" Bibliothek einbinden. ... Hallo Klaus, ... deshalb gerade folgendes Problem in VBA: ... Next by Date: ...
    (microsoft.public.de.access)
  • Re: RegExp as Finite State Machine
    ... RegExp is a FSM, both describe a regular language. ... language it accepts is regular -- Regular Expressions. ...
    (comp.lang.javascript)
  • Re: Frustration with regexes in Word, VBA, VBScript
    ... The "trick" is that RegExp is supplied as a COM object from the Scripting ... literally a part of VBA, there's no VBA help topic for it. ... paragraph/style formatting, if you're unlucky enough to replace paragraph ...
    (microsoft.public.word.vba.general)