﻿file = r'resources\views\public-test\fill.blade.php'
with open(file, 'r', encoding='utf-8') as f:
    c = f.read()

old = '                <button type="submit" class="btn btn-success btn-lg px-4"\n                    onclick="return confirm(\'Kirim jawaban Anda?\')">'
new = '                <button type="submit" class="btn btn-success btn-lg px-4">'

if old in c:
    c = c.replace(old, new)
    print("OK!")
else:
    print("GAGAL")

with open(file, 'w', encoding='utf-8') as f:
    f.write(c)
