AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wildcard support

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
wolive



Joined: 20 Jul 2004
Posts: 21
Location: South Africa

PostPosted: Tue Jul 26, 2005 8:54 pm    Post subject: Wildcard support Reply with quote

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
View user's profile Send private message
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Tue Jul 26, 2005 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Wed Jul 27, 2005 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group