Skip to content

Instantly share code, notes, and snippets.

@swo
Created May 7, 2025 13:42
Show Gist options
  • Save swo/59b53a9f5ad927844995f9b39b6e8298 to your computer and use it in GitHub Desktop.
Save swo/59b53a9f5ad927844995f9b39b6e8298 to your computer and use it in GitHub Desktop.
Streamlit example
import streamlit as st
import re
st.title("A regex checker")
s = st.text_input("string")
r = re.compile(st.text_input("regex"))
st.write(re.findall(string=s, pattern=r))
num = st.number_input("number", 0, 100, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment