packages = ["regex"]

Add http://


http (Click to change)

output = Element("output") https = Element("text") css = "style='user-select: none;'" def add(): text = Element("add").element.value output.element.innerHTML = f"Output:
" if "https" not in https.element.innerHTML: for l in text.split("\n"): display("http://" + l, target="output") else: for l in text.split("\n"): display("https://" + l, target="output")

💡


Developed using PyScript.