I have python code where I have an input parameter. The other application is going to pass the parameter. Here's the requirement. Parameter will be passed like this.
- abc_201901.txt
- abc.201901.txt
- abcde_201901.txt
From the above parameter, I need to extract "abc_" or "abc". or "abcded_", and then go to the directory and search for the files.
I am having hard time to find the function which can do this.