Regex_get_first_match is returning null

Answered

I have a text body that I'm extracting from an email payload. Then, I process the payload data with below expression base64_decode_urlsafe|strip_html. As a result I get a text like below.

Next I want to extract some info from this text using regex. To extract amount I use regex_get_first_match: '/([0-9][0-9,]*\.\d{1,2})/' but I always get null response. This works perfectly on Regex101.

Why is the regex not working here?

ABC Bank Online Dear Customer, Your ABC Bank Credit Card XX3333 has been used for a transaction of INR 532.18 on May 08, 2025 at 11:59:43. Info: XYZ Merchant Limited. The Available Credit Limit on your card is INR 20,20,179.74 and Total Credit Limit is INR 20,50,000.00. The above limits are a total of the limits of all the Credit Cards issued to the primary card holder, including any supplementary cards. In case you have not done this transaction, to report it please call on 18002662 or SMS BLOCK space 3333 to 9215676766 from your registered mobile number and if you are outside India, call on 04071403333. In case you require any further information, you may call our Customer Care or write to us at [email protected].
2 replies