Functionality I always like to have in my programming language is the capability to perform regular expression pattern matching. If anyone has already added this capability to AutoIt, I'd appreciate hearing about it before I go and re-invent a wheel.
Regular Expression Pattern Matching
Started by
flyingboz
, Dec 15 2003 03:46 PM
4 replies to this topic
#1
Posted 15 December 2003 - 03:46 PM
Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
#2
Posted 15 December 2003 - 05:10 PM
from my best of understanding. regular experssion programming can get confusing fast. explain a little more as to what you are talking about because if it is anything like what i understand as to what you are saying. it could confuse you in a heart beat because regualr expression programming is nothing more than words that mean a function. so if you do this, how would someone denote the what to write. because same words different order new meaning. could get confusing fast.
soplease explain a little more as to what you mean?
soplease explain a little more as to what you mean?


#3
Posted 16 December 2003 - 09:08 PM
I think this is one of the quality discussions on what regular expressions are,
and how they make life worth living
Regular Expressions
Think of wildcard characters on steroids.
Regular Expressions provide a powerful methodology to locate data that matches a given "pattern". These have long been utilized by such applications as grep, perl, vi to incredible effect.
The syntax is quite well defined and I believe could be implemented easily into a autoit3 command, probably by grabbing it from an open-source grep parser.
There is a RegEx VBScript object available, but I much prefer coding in Au3
and how they make life worth living
Regular Expressions
Think of wildcard characters on steroids.
Regular Expressions provide a powerful methodology to locate data that matches a given "pattern". These have long been utilized by such applications as grep, perl, vi to incredible effect.
The syntax is quite well defined and I believe could be implemented easily into a autoit3 command, probably by grabbing it from an open-source grep parser.
There is a RegEx VBScript object available, but I much prefer coding in Au3
Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
#4
Posted 16 December 2003 - 09:43 PM
isn't that why they have the if, do then things?, you can pretty much make up your own general expression lopp basicly. if john keeps autoit, like it is right now anyways. i mean pretty much the *.* stuff is nothing more than if and do and then.
don't know if this is correct but i am sure someone could explain it a little more.


#5
Posted 17 December 2003 - 06:29 AM
I'm hooked on Regular Expressions too. I think it depends on what/how you need to use them though.
For example, I use AI3 to drive the RegExp search/replace feature of my text-editor (TextPad) .. and it works like a dream. Meets all my RegExp needs, but it might be a different angle compared with where you're coming from.
Another alternative is to use grep for windows in an AI3 script (with or without a text-editor). Again .. depends on how you need to use the RegExps.
For example, I use AI3 to drive the RegExp search/replace feature of my text-editor (TextPad) .. and it works like a dream. Meets all my RegExp needs, but it might be a different angle compared with where you're coming from.
Another alternative is to use grep for windows in an AI3 script (with or without a text-editor). Again .. depends on how you need to use the RegExps.
Edited by trids, 17 December 2003 - 06:33 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





