Sign in to follow this  
Followers 0

Regular Expression Pattern Matching

5 posts in this topic

Posted

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.

Share this post


Link to post
Share on other sites



Posted

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?

Share this post


Link to post
Share on other sites

Posted

I think this is one of the quality discussions on what regular expressions are,

and how they make life worth living :whistle:

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

Share this post


Link to post
Share on other sites

Posted

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. :whistle: don't know if this is correct but i am sure someone could explain it a little more.

Share this post


Link to post
Share on other sites

Posted (edited)

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.

Edited by trids

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.