Batteries
Patterns
Accent
Scheme
Backdrop motion
Batteries

Patterns

Regular expressions, written as text. One pattern, its flags and a text at the top; every call of re below works on them as you type.
Pattern testerA match is {text, at, end, groups, group}. A wrong pattern fails where it is used: the page keeps the message.
Presets
Pattern
Flags
Text
Matches
3
Ordered 2026-11-15, shipped 2026-11-18, due 2026-12-01.

The calls

Each on the pattern, flags and text above.
re.test and re.findIs it there, and the first place it is.
re.testtrue if the pattern is anywhere in the text
true
re.find2026-11-15at 8, end 18
groups
$1 2026
$2 11
$3 15
group 1 the first group that took part
re.allEvery match, in order, with its groups.
8–182026-11-15
20261115
28–382026-11-18
20261118
44–542026-12-01
20261201
re.at and re.fromA match that starts exactly at i, and the first at or after i.
iwhere to look from
8
Ordered
2026-11-15, shipped 2026-11-18, due 2026-12-01.
re.at2026-11-15at 8, end 18
re.from2026-11-15at 8, end 18
re.replaceEvery match is replaced; $1, $2 … are its groups.
With
re.replace
Ordered 15/11/2026, shipped 18/11/2026, due 01/12/2026.
re.splitThe text between the matches.
Ordered 20261115, shipped 20261118, due 20261201.
13 pieces. A pattern with groups puts each group's text among them, as JavaScript does.

Writing patterns

re.escape and raw stringsText to look for as it is, and backslashes that stay as written.
Look for
In
re.escape
1\.5 \(approx\)
escaped1.5 (approx)at 9, end 21
as it is125 approxat 27, end 37
As a pattern, unescaped, the dot is any character and the brackets are a group: it finds something else.
r"\d+" is 3 characters
"\\d+" is 3
the same text
A tokeniser with re.atOne rule after another, each tried at the place the last token ended.
totalname
=operator
pricename
*operator
1.0825number
+operator
'tax'string
esc
Pages
StartStart
Buttons & badgesComponents
Cards & disclosureComponents
Dialogs & drawersComponents
Menus & commandsComponents
Dates & tablesComponents
ChartsComponents
Chart galleryComponents
FieldsComponents
ChoicesComponents
DisplayComponents
NavigationComponents
Popovers & sheetsComponents
MessagesChat & AI
Prompt inputChat & AI
Reasoning & toolsChat & AI
Developer partsChat & AI
ConversationChat & AI
Code artifactsChat & AI
VoiceChat & AI
Code blocksChat & AI
MarkdownChat & AI
EditorElements
TerminalElements
FlowElements
3D boxesElements
PaintElements
SurfaceElements
MediaElements
IconsElements
PrimitivesElements
SQLBatteries
StorageBatteries
Net & resourcesBatteries
Crypto & bytesBatteries
ZipBatteries
TablesBatteries
PDFBatteries
TimeBatteries
ImagesBatteries
ScanBatteries
Video & audioBatteries
SearchBatteries
SyntaxBatteries
PatternsBatteries
NotifyBatteries
ShareBatteries
State & logicLanguage
WorkersLanguage
Events & elementsLanguage
StylingLanguage
RoutesLanguage
ShortcutsLanguage
Long listsLanguage
Failures & tryLanguage
Back endBack end
Models & writesBack end
Rules & failuresBack end
Jobs & schedulesBack end
Running itBack end
ExtensionsBack end
AIBack end
AnalyticsBack end
AboutAbout
↑↓move
↵open
676 places · ranked by BM25