Hi Experts, can you pls let me know a regex expression to derive month and year for below column "months_yr"
months_yr is month number and the years are differentiated with "_2".
Values with "_2" is for year 2022 and without "_2" is for year 2021
Sample example below:
I have column "months_yr" in my dataset and I am looking for a regex expression or formula to derive columns "Month" and "Year"
| months_yr | Month | Year |
| 1 | 01 | 2021 |
| 1_2 | 01 | 2022 |
| 10_2 | 10 | 2022 |
| 11 | 11 | 2021 |
| 11_2 | 11 | 2022 |
| 12 | 12 | 2021 |
| 12_2 | 12 | 2022 |
Regards, Ravi