oyster farm

Welcome to the Oyster Farm, a database of regular expressions with downloadable pearls for Oyster.

Recent

Select back from match, Anonymous

Simple Regex to select back to beginning of the string with and including the matched character

MAC Address, Alan Sure

A regular expression for matching against MAC 48 addresses (as defined by the IEEE 802 standard).

XML/HTML Tag, Alan Sure

XML tag pair matching with sub-groups for tag name and content of tags.

IP Address, Alan Sure

Matches IPv4 addresses. It's relatively lax but is more than enough for the majoirty of use-cases.

Web URL, Alan Sure

Matches URLs. Does not support URLs that contain IP addresses for simplicity. See IP address pearl for that regular expression, which you can include as an alternative to the server section of this regular expression.

Popular

Web URL, Alan Sure

Matches URLs. Does not support URLs that contain IP addresses for simplicity. See IP address pearl for that regular expression, which you can include as an alternative to the server section of this regular expression.

Get Specific Line, Alan Sure

This is a pearl we used early on in Symbolon. Together with the supplied replacement pattern it will higlight a specific line of any given file. Simply replace the number of lines that must be parsed first, and it will pick out the line you are interested in.

MAC Address, Alan Sure

A regular expression for matching against MAC 48 addresses (as defined by the IEEE 802 standard).

IP Address, Alan Sure

Matches IPv4 addresses. It's relatively lax but is more than enough for the majoirty of use-cases.

XML/HTML Tag, Alan Sure

XML tag pair matching with sub-groups for tag name and content of tags.