im trying to update some code written in a private language ... anyway the thing is i was trying to use regex in python language to match the rest of the code as in the example :
from re import sub
data = """
Go To --> BB125276 {
Scan:
#f
}
"""
#//////////////////////////////////////
schema = r"""
Go To --> (.+) {
\s*(.+)
}
"""
#//////////////////////////////////////
final_form = r"""
Goto {\1}
\2
"""
#//////////////////////////////////////
massar_code = sub(schema, final_form, data)
print(massar_code)
but it doesn't matches newlines and spaces ... i want it to matches everything any help !??