I'm starting to learn Python and just now getting into regular expressions. I want to figure out what is the best way to search a string to find a number (which can be different lengths) that is always directly following a certain substring.
For example:
string = """ this is a very long string with 495834 other numbers;
if I had the ( 5439583409 );
Keyword_indicator( 53029453 ); //
energy to type more and more; ..."""
I want to be able to search the string for "Keyword_indicator" which only shows up here, then pull the number within the parenthesis, knowing the number isn't a set length.
output = "53029453"
Edit - The string has other numbers in it, and the number I'm looking for is always an integer.