How can I find the substring next to a mentioned substring from given string.
For example:
string = "unable to increase the space of the index orcl_index. The space for the index orcl_index should be increased by 250mb"
indicator substring here is "index", and required output will be "orcl_index".
I tried the following the code, but not sure how to proceed further
my_string = "unable to increase the space of the index orcl_index. The space for the index orcl_index should be increased by 250mb"
print(my_string.split("index",1)[1])
a= my_string.split("index",1)[1]
b= a.strip()
print(b)
Output:" orcl_index should be increased by 250mb"
Required output: "orcl_index"