RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Extract URI Match from MediaWiki External Links and seperate from title
Expression
(?<=\r\n)\[.*\]
Description
This will match the URI in an internal wiki link separately from its title in mediawiki content.
Matches
[https://sub.domain.com/wiki/index.php?title=test Sample Wiki Link] | [https://regexlib.com/page.aspx Example External Wiki Link] | [https://servername/subfolder/sample.txt Sample Web Document Link]
Non-Matches
[file://\\servername\subfolder\sample.txt Sample Text Link] | [[An External Link] | ===[https://sub.domain.com/wiki/index.php Will Not Match a link surrounded by a header]===
Author Rating: Not yet rated. Matthew Reinsmith
Source mreinsmith
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials