F
Fernando Rodriguez
Hi,
I'm trying to write a regex that finds whatever is between ${ and } in a text
file.
I tried the following, but it only finds the first occurrence of the pattern:
What am I doing wrong? O
I'm trying to write a regex that finds whatever is between ${ and } in a text
file.
I tried the following, but it only finds the first occurrence of the pattern:
('123',)s = """asssdf${123} dgww${one} ${two}"""
what = re.compile("\$\{([^}]*)\}")
m = what.search(s)
m.groups()
What am I doing wrong? O