EDIT: So apparently, this is a string interpolation in regex. Thanks for clarifying.
I have a input function that is named omj.
omj
When I run it, it gives me
"obik"
I then use that output in this regex function
re.findall("\w*obik\w*",dataframe)
I received EXACTLY what I wanted, which is the answer
"Yaobikuni"
Notice that "obik" is in the word, and there is only one match for it. Is there a way to put the input omj in the regex function to get Yaobikuni straightforwardly, or is this the only way it would work?
EDIT: I don't understand why people are downvoting, but I thought I made it clear that omj can be considered as an input string that gives the answer obik.
omj = """obik"""
EDIT2: Thank you for the help @Nick Chapman . I tried this on the first time and I thought it might not have been possible to infuse the input omj on an regex function:
re.findall("\w*"omj"\w*",dataframe)