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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Match External Wiki Link ONLY
Expression
(?<!\[)\[(?!\[).*(?<!\])\](?!\])
Description
This will match the an External wiki link ONLY allowing you to separate the href and the title for use in other link types
Matches
[https://sub.domain.com/wiki/index.php?title=test Sample Wiki Link] | [https://regexlib.com/page.aspx Example External Wiki Link] | ===[https://sub.domain.com/wiki/index.php Does Match a link surrounded by a header]===
Non-Matches
[[file://\\servername\subfolder\sample.txt Sample Text Link]] | [[Example Wiki Link Double Square Brackets]] | [https://sub.domain.com/wiki/index.php Will Not Match a link which is missing its matching bracket
Author Rating: Not yet rated. Matthew Reinsmith
Source
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