How to craft this regular expression?

Hi guys, I would like to extract the month and year as shown in the picture. However, i’m trying to loop the process and I’ve been trying to use the term bill which is the common word after the month and year which always changes, how do I craft the regular expression?
image

Hi,

How about the following pattern?

[A-Za-z]+\s*\d{4}(?=\s*Bill)

image

Hi @HENG_JUN_YING_AARON

Try this

(?<=SPgroup ).*\d+

image

I hope it helps!!

Thank you so much, it worked!

@HENG_JUN_YING_AARON

Try this

\w+ \d+.*(?= Bill)

image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.