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 

wildcards for IfInString and StringGetPos

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Sun Jun 27, 2004 6:17 pm    Post subject: wildcards for IfInString and StringGetPos Reply with quote

So you can search through a string even if you don't know the exact text you'll need to search for.

How about these?

? Matches a single character.
* Matches one or more characters.
# Matches any digit.
[range] Matches if the character in question is within the specified range.
[!range] Matches if the character in question is not within the specified range.
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Jun 27, 2004 8:31 pm    Post subject: Reply with quote

I'll add to the list "Support optional regular expressions in StringGetPos." I suspect regular expressions would do all of the above, and more.
Back to top
View user's profile Send private message Send e-mail
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Mon Jun 28, 2004 7:58 am    Post subject: Reply with quote

Maybe someone (beside myself) would be happy to get something similar for IfExist Wink .
While a basic wildcarding like
IfExist, ...\*.txt works fine, a multiple wildcarding like
IfExist, ...\*.txt; *.csv; *.doc (DOS style) seems not to be possible. Crying or Very sad

Thx 4 your support. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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