HomeJSON/XML Extractors
JSON/XML Extractors
Parsing structures, keys, values, and tags.
27 Tools Available
JSON Object
Matches nested JSON objects.
/{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*}/
JSON Array
Matches JSON arrays.
/\[.*?\]/
Key-Value Pair
Extracts string KV pairs.
/"([^"]+)":\s*"([^"]+)"/
Numeric Value
Extracts numeric values.
/"([^"]+)":\s*([0-9.]+)/
Boolean Value
Extracts boolean values.
/"([^"]+)":\s*(true|false)/
Null Value
Extracts null values.
/"([^"]+)":\s*null/
Specific Key
Finds "id" value.
/"id":\s*"?([^",}]+)"?/
XML Tag
Matches any XML tag.
/<([^>]+)>/
XML Attribute
Extracts XML attributes.
/([a-zA-Z0-9-]+)="([^"]*)"/
Self-Closing Tag
Matches <br/> style.
/<[^>]+\/>/
Comment Remover
Matches XML comments.
/<!--[\s\S]*?-->/
CDATA Section
Matches CDATA.
/<!\[CDATA\[[\s\S]*?\]\]>/
RSS Item
Matches RSS feed items.
/<item>[\s\S]*?<\/item>/
SOAP Envelope
Matches SOAP requests.
/<soap:Envelope[\s\S]*?<\/soap:Envelope>/
YAML Key
Matches YAML keys.
/^([a-zA-Z0-9_-]+):/
HTML Entity
Matches & etc.
/&[a-zA-Z0-9]+;/
DocType
Matches DOCTYPE.
/<!DOCTYPE[^>]+>/
JSON Cleaner
Finds trailing commas (invalid JSON).
/,\s*}/
Extract URLs JSON
Extracts URLs from JSON.
/"(https?:[^"]+)"/
Nested Brackets
Matches nested parentheses.
/\((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\)/
XML Header
Matches XML declaration.
/<\?xml[^>]+>/
Tag Content
Extracts inner text.
/<tag>([^<]+)<\/tag>/
Empty JSON
Matches empty object.
/^\{\s*\}$/
Empty Array
Matches empty array.
/^\[\s*\]$/
Valid Number JSON
Strict JSON number validation.
/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/
Broken JSON
Detects truncated JSON.
/[{[]\s*$/
JSON Date
Finds dates in JSON.
/"\d{4}-\d{2}-\d{2}T.*?"/