Hopp til innhald

Modul:languages/data/patterns

Frå Wiktionary - den frie ordboka

Dokumentasjon for modulen kan opprettast på Modul:languages/data/patterns/dok

-- Capture patterns used by [[Module:languages]] to prevent formatting from being disrupted while text is being processed.
return {
	"^((%s+).-(%s+))$", -- Initial and final spaces
	"((\127'\"`UNIQ%-%-%l+%-%x+%-QINU`\"'\127))", -- Strip marker
	"((<[^<>]+>))", -- HTML tag
	"('*(''').-'*('''))", -- Bold
	"('*('').-'*(''))", -- Italics
	"((%[%[)[^|%]]*(%]%]))", -- Bare internal link
	"((%[%[)[^%[]*(|)[^%]]*(%]%]))", -- Piped internal link
	"((%[)[^[%]]*(%]))", -- External link
	"((https?://%S+))" -- URL
}