Code: Select all
if RegExMatch(clip, "i)(¥|RMB|CNY)\s?([0-9.,]+)", M) { ; case 1
if RegExMatch(clip, "i)(\bRM\b|MYR)?\s?([0-9.,]+)", M) { ; case 2
if (RegExMatch(clip, "^\s?\d{4}\s?$")) { ; case 3
BirthYear := clip
if (BirthYear >= 1900 && BirthYear <= 2022) {
; case 1
RMB25
RMB 25
25RMB
25 RMB
25 CNY
; case 2
RM25
RM 25
25RM
25 RM
; case 3
1999
2000
2021
Even though I already inserted \b, 25RMB still goes to the 2ⁿᵈ match, and even 1999 also goes to 2ⁿᵈ match. how do I deconflict these 3?