Loading Python runtime…

Boolean Query Parser

A lightweight, zero-dependency Python query parser — running live in your browser via WebAssembly.

📦 PyPI 0 dependencies 🐍 Pyodide WASM

Query

Supports: AND, OR, NOT, parentheses, regex /pattern/flags, implicit AND, comparisons num:>5 date:>2023-01-01, templates "text {num:<50} ms"

Results

Basic Examples

Advanced & Edge Cases

Syntax Reference

python flaskImplicit AND — both terms must match
python AND flaskExplicit AND — both terms must match
python OR rubyEither term must match
NOT javaTerm must not be present
python AND (django OR flask)Grouping with parentheses
/\d+\.\d+/Regular expression matching
/error/iCase-insensitive regex
"hello world"Quoted phrase (exact match)
num:>3Any number in text greater than 3
num:<=9.99Any number in text ≤ 9.99 (float)
date:>=2023-01-01Any date in text on or after 2023-01-01
num:=42Any number in text equals 42
num:>=5 AND num:<=10Numeric range (combine two comparisons)
"took {num:<50} ms"Positional template — number must be < 50 at that position
"test {num:>0} in {num:<100} ms"Multiple placeholders in one template
"deployed {date:>2024-01-01}"Date placeholder in a positional template