我需要抓住後,該2個字符的字母和數字: 我要的是: AB 12 CD-12345-67 -> CD-12345
AB12 CD 12345-67 -> CD 12345
AB-12CD12345-6 -> CD12345
ABC1234556 -> no match, as I look for 2 character letter and numbers after that.
ABC-
我想提取一切從下面的字符串,除了「從」和非捕獲組「從」: 源自古法語,由拉丁語innocentia,來自無辜 - '不傷害'(基於nocere'傷害')。 這是我的正則表達式: (?:from)(.*)(?:,.from)(.*)
對於這個表達式,我會得到Old French, from Latin innocentia和innocent- ‘not harming’ (based on no