I need to extract the highlighted number from these two strings.
Dear IBBL CH Purchased
10.00BDT at grameenphone.com, BD on 05.09.21 20:06 Card ***9793 Avl Bal: 930.53 BDT Help:16259 Get 10%discount from DARAZ *T&CTK
20,312.84has been refunded into your A/C **04994509 at 10/01/21 03:27 PM for NPSB Transfer: 71210110003106, Balance:21,019.50. Help:16259,8331090 - IBBL iBanking
I have tried (?<=tk )(.+\d) for the first one and \d.+ (?=bdt) for the second one, but doesn't work.
\d+(?:[.,]\d+)*(?=\s*BDT)|(?<=TK\s)\d+(?:[.,]\d+)*if you are using the pattern in an environment that fetches the first match. See this regex demo.