Regex · Integer · Free
Integer regex.
Matches a whole number, optionally negative. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/-?\d+/g
✓ Matches
42-71000000✗ Doesn't match
3.14abc1,000Need a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →