If I have a string like this:
*select 65* description
How could I extract the bit after the asterisk and the number using regex in Python? I need something that would yield select and 65 from the above string.
All of them follow this convention:
*[lowercase specifier] [integer]* description
You could use this regular expression:
In Python, you can match regular expressions with the
remodule. Thus: