Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig
Livardo wrote:How have people implemented Regular Expressions in VIsual Age?I understand there's not an "official" parser available, but is there any free alternatives out there?
daswartz wrote:Not free, but... If David Pennington and Totally Objects are still active, they have a regexp parser for VAST for around $100 US for a site license. http://www.totallyobjects.com/rest.htm The things I have purchased from Totally Objects have always worked well.
Vassili Bykov ported his free regular expression parser to VAST way back in 1999. Right now, I can't find it on the web. I'm pretty sure it was on the old UIUC Smalltalk site, but that has been down for while. This is an example of useful goodies we need to get collected on a site. Preferably a site supported by Instantiations.
Doug Swartz
Livardo wrote:How have people implemented Regular Expressions in VIsual Age?
Livardo wrote:I did find a reference to Vassili's code in the old newsgroup, alas, I couldn't actually find the code! I did find a Visual Works .st file in but that's it.
Hans-Martin wrote:We have been using Vassili's Regex for quite a long time. I would have attached it to this post, but the forum software sez "The extension dat is not allowed" and at the moment I don't have access to any server where I could place it easily.
Cheers,
Hans-Martin
Livardo wrote:Hi all,
How have people implemented Regular Expressions in VIsual Age?
I understand there's not an "official" parser available, but is there any free alternatives out there?
Could there be something in the Win32 APIs I could hook into? Please, save me from the Java guys making fun of me!
Thanks!
Jorge
('locomotion' mskMatchPattern: 'l[a-z]*') == true
('mocomotion' mskMatchPattern: 'l[a-z]*') == false
| anInstance rc matches |
(anInstance := MSKTreInterface withPattern: 'l[a-z]*') notNil
ifTrue:[
(anInstance matchesString: 'locomotion') ifFalse:[ self halt ].
(anInstance matchesString: 'mocomotion') ifTrue:[ self halt ].
].
anInstance regFree.
Return to VA Smalltalk 7.0, 7.5 & 8.0
Users browsing this forum: Yahoo [Bot] and 1 guest