Webtools examples63 examples
These links put all settings and the input text in the URL, so they also work from a local file (file://). Each example is also a test case - see pub/examples/.
Basic text
Lines To List
- Make a list of a set of lines Quote each line and join them with commas
- Keep leading whitespace Only trailing whitespace is removed
- Keep trailing whitespace Only leading whitespace is removed
- Keep empty lines Empty lines become empty list items
- Lines to list and back Lines To List chained with List To Lines Lines To List→List To Lines
List To Lines
Sort Lines
- Sort using separators Split lines on , ; or space and sort on the 4th then 3rd field
- Sort using key extraction Sort on the 2nd word matched by a key regexp
- Numeric sort Sort numerically on the 2nd field, then on the 3rd
- Numeric sort, inversed Same sort in descending order
Unique / Count Lines
- Unique lines Remove duplicates, keep the order of first occurrence
- Count line occurrences Case insensitive count, most frequent first
- Duplicated and single lines Keep only duplicated lines, then only lines occurring once Unique / Count Lines→Unique / Count Lines
Clean Whitespace
Change Case
- camelCase, snake_case and CONSTANT_CASE Three case conversions chained Change Case→Change Case→Change Case
- Title and sentence case Title Case chained with Sentence case Change Case→Change Case
Prefix/Suffix Lines
Compare Lists (Input A vs List B)
Regular expressions
Grep - Match Lines
- Word at start of each line Only keep the matching part
- First 4-letter word on each line Case insensitive, with lookbehind and lookahead
- First 4-letter lowercase word on each line Same pattern, case sensitive
- Lines with words of 7+ characters Keep the full matching lines
List RE Matches
- All words of a text Global match on each line
- First word of each line Only the first match per line
- First lowercase word of each line Case sensitive, first match per line
- Word at the start of the text ^ matches at the start of the document
- Word at the start of each line ^ matches at the start of each line
Encoding / dev
Encode/Decode
- Base64 Encode and decode again Encode/Decode→Encode/Decode
- HTML Escape and unescape HTML special characters Encode/Decode→Encode/Decode
- URL Encode and decode a URL Encode/Decode→Encode/Decode
- Hex UTF-8 bytes as hex and back Encode/Decode→Encode/Decode
Hash (SHA)
- SHA-256 hash Hex digest of "abc"
- Hash per line SHA-1 of each line, then SHA-256 as Base64 Hash (SHA)→Hash (SHA)
JWT Decode
- Decode a JWT Header, payload and the iat date
- JWT payload field Payload chained with JSON Path to get the name JWT Decode→JSON Path to list
Timestamp Convert (epoch - date)
- Epoch to date and back Seconds, milliseconds and ISO dates, original value kept
- Milliseconds round trip Epoch in ms to date and back Timestamp Convert (epoch - date)→Timestamp Convert (epoch - date)
UUID Generator
XML / JSON / CSV
XPath to list
Multiple XPaths to list
XML Format/Validate
- Pretty print XML Indented with 2 spaces, declaration and comments kept
- Minify XML Whitespace between elements removed
JSON Format/Validate
JSON Path to list
- Book titles $.store.book[*].title
- All prices Recursive descent: $..price
- Slices and key lists $.store.book[-1:]['author','price']
- Values as JSON Strings are output with quotes
CSV Columns
- Select columns by number Auto detected ; delimiter, quoted fields
- Select columns by name Header names, output tab separated
CSV to/from JSON
Banking
REplace Text
BBAN to IBAN
- BBAN to IBAN for several countries Country code in the input
- BE accounts to human IBAN format Fixed country BE
Example IBANs
IBAN Validate/Format
- Validate IBANs Human format with the reason for invalid ones
- Validate generated IBANs Example IBANs chained with a filter on invalid ones Example IBANs→IBAN Validate/Format