pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

Extract & Sort Numbers

Sorted list of all numbers found in text

Extract
Input0 chars
Output0 chars

How it works

$ regex-extract --pattern=\d+ | sort-lines --numeric=true

Examples

Extract all numbers from order records for analysis

Usage
"Order #4521: 3 widgets at $9.99 each
Order #4522: 12 gadgets..." | regex-extract --pattern=\d+ | sort-lines --numeric=true

Pull and sort response times from a performance report

Usage
"Server response times: 120ms, 45ms, 890ms, 23ms, 456ms" | regex-extract --pattern=\d+ | sort-lines --numeric=true

Extract and sort class sizes from a room assignment sheet

Usage
"Room 101: 4 students
Room 205: 28 students
Room 310: 15 stud..." | regex-extract --pattern=\d+ | sort-lines --numeric=true