Title |
Test
Find
Match MediaWiki Internal and External Links
|
Expression |
(?<=\r\n)\[.*\] |
Description |
This will match both internal and external links from mediawiki content. IT should also work for all wiki types that use both single and double square brackets "[ and ]". it will NOT MATCH a link surrounded by a header. Square brackets are tricky because they are used in Regular Expressions and must use the metacharacter to match them |
Matches |
[[Example Internal Wiki Link Double Square Brackets]] | [https://regexlib.com Example External Wiki Link] | [[Another Internal Link]] |
Non-Matches |
=== HEADING 3 === | A Simple String of Text not surrounded by anything | ===[[Will Not Match a link surrounded by a header]]=== |
Author |
Rating:
Not yet rated.
Matthew Reinsmith
|
Source |
mreinsmith |
Your Rating |
|