我有一個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