我有一个AutoHotkey的脚本,其检查与If WinActive("WFC-16 - Windows Internet Explorer") 我需要改变这对匹配任何2位数字活动窗口标题。 I.E. If WinActive("WFC-## - Windows Internet Explorer")。 我可以使用RegEx-like修饰符来匹配任何使用WinActive()的0-9号码吗?
我正在尝试创建一个正则表达式来匹配所有字母或空格或具体数字。 这是我的。 ([a-zA-Z\s24]*)
#but this is matching a 2 or a 4, i need exactly 24 only
ex:
- asdfafasf asfasdf #should match asdfafasf asfasdf
- asdf asdf asdf 24 #should