| View previous topic :: View next topic |
| Author |
Message |
wolive
Joined: 20 Jul 2004 Posts: 21 Location: South Africa
|
Posted: Tue Jul 26, 2005 8:54 pm Post subject: Wildcard support |
|
|
Is it possible to parse a file or variable searching for a specific string using a wildcard, ie: * or ?
I've searched the forum but can't find any info and the planned features list does not mention it as a future posibility.
Thanks |
|
| Back to top |
|
 |
Wingfat
Joined: 23 Aug 2004 Posts: 193 Location: East Bay, California USA
|
Posted: Tue Jul 26, 2005 9:03 pm Post subject: |
|
|
you could use:
IniWrite & IniRead functions to do that. I am not sure about FileRead or FileReadLine will help you.. is it a text file you are trying to parse? _________________ ----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
----------------------------- |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Wed Jul 27, 2005 5:51 am Post subject: |
|
|
To use wildcards would require to have regex. But Regex isn't implemented (yet).
But there is a link in the script/function section that shows how to use PERL. I assume that would be the best solution for you if you really need to use wildcards.
If yyou want to stay purely with AHK. You have to try to find a way with
StringReplace
StringTrim(Left/Right)
String(Left/Right)
If var in list
If var contains list (this is my best guess of what you need)
You can do a lot with these commands (but it will be more lines then just a wild card) _________________ Ciao
toralf  |
|
| Back to top |
|
 |
|