C# Class WikiFunctions.WikiRegexes

Provides some common static regexes
Show file Open project: reedy/AutoWikiBrowser Class Usage Examples

Public Properties

Property Type Description
AllTags System.Text.RegularExpressions.Regex
AllTemplateRedirects System.Text.RegularExpressions.Regex
AllTemplateRedirectsHS HashSet
AllTemplateRedirectsList List
AmericanDates System.Text.RegularExpressions.Regex
ArticleToFirstLevelTwoHeading System.Text.RegularExpressions.Regex
BASEPAGENAMETemplates System.Text.RegularExpressions.Regex
BASEPAGENAMETemplatesL List
BLPSources System.Text.RegularExpressions.Regex
BareExternalLink System.Text.RegularExpressions.Regex
BareRefExternalLink System.Text.RegularExpressions.Regex
BareRefExternalLinkBotGenTitle System.Text.RegularExpressions.Regex
Big System.Text.RegularExpressions.Regex
BirthsCategory System.Text.RegularExpressions.Regex
Blockquote System.Text.RegularExpressions.Regex
Bold System.Text.RegularExpressions.Regex
BoldItalics System.Text.RegularExpressions.Regex
Br System.Text.RegularExpressions.Regex
BulletedText System.Text.RegularExpressions.Regex
CEHar System.Text.RegularExpressions.Regex
CatImprove System.Text.RegularExpressions.Regex
Category System.Text.RegularExpressions.Regex
CategoryQuick System.Text.RegularExpressions.Regex
Centuryinbox System.Text.RegularExpressions.Regex
CircaLinkTemplate System.Text.RegularExpressions.Regex
CircaTemplate System.Text.RegularExpressions.Regex
CiteTemplate System.Text.RegularExpressions.Regex
Cites System.Text.RegularExpressions.Regex
ClockTime System.Text.RegularExpressions.Regex
Comments System.Text.RegularExpressions.Regex
CurlyDoubleQuotes System.Text.RegularExpressions.Regex
Currency System.Text.RegularExpressions.Regex
Dablinks Regex
DateBirthAndAge Regex
DateYearMonthParameter string
DatedTemplates List
Dates Regex
Dates2 Regex
DayMonth Regex
DayMonthRangeSpan Regex
DeadEnd Regex
DeadLink Regex
DeathDate Regex
DeathDateAndAge Regex
DeathsOrLivingCategory Regex
Defaultsort Regex
DeletionProtectionTags Regex
Disambigs Regex
DisambigsCleanup Regex
DisambigsGeneral Regex
DoublePipeLink Regex
EmptyBold Regex
EmptyComments Regex
EmptyLink Regex
EmptyTemplate Regex
ExternalLinks Regex
ExternalLinksHTTPOnly Regex
ExternalLinksHTTPOnlyQuick Regex
ExternalLinksHeader Regex
ExtractTitle Regex
FileNamespaceLink Regex
GalleryTag Regex
GregorianYear Regex
HarvTemplate Regex
HeadingLevelThree Regex
HeadingLevelTwo Regex
Headings Regex
HeadingsWhitespaceBefore Regex
ISODates Regex
ISODatesQuick Regex
Ibid Regex
IbidLocCitation Regex
ImageMap Regex
Images Regex
ImagesCountOnly Regex
ImagesNotTemplates Regex
ImperialUnitsInBracketsWithoutNonBreakingSpaces Regex
InUse Regex
Includeonly Regex
IncludeonlyNoinclude Regex
IndentedText Regex
InfoBox Regex
InfoBoxDOBFields List
InfoBoxDODFields List
InfoBoxPOBFields List
InfoBoxPODFields List
InternationalDates Regex
Italics Regex
LinkFGAs Regex
LivingPeopleRegex2 Regex
LooseCategory Regex
LooseImage Regex
MagicWordTemplates Regex
MagicWordsBehaviourSwitches Regex
MaintenanceTemplates Regex
MathPreSourceCodeComments Regex
MeaningsOfMinorPlanetNames Regex
MetresFeetConversionNonBreakingSpaces Regex
MonthDay Regex
MonthDayRangeSpan Regex
Months string
MonthsNoGroup string
MoreNoFootnotes Regex
MultipleIssues Regex
MultipleIssuesArticleMaintenanceTemplates Regex
MultipleIssuesSectionMaintenanceTemplates Regex
NamedReferences Regex
NamedReferencesIncludingCondensed Regex
NamespacesCaseInsensitive Regex>.Dictionary
NestedTemplates Regex
NewUnReviewedArticle Regex
Newline Regex
NoGeneralFixes Regex
NoRETF Regex
Noinclude Regex
NonDeadEndPageTemplates Regex
NonHTTPProtocols Regex
NotATypo Regex
NotesHeader Regex
Nowiki Regex
Orphan Regex
PeopleFromCategory Regex
PeopleInfoboxTemplates Regex
Percent Regex
Persondata Regex
PipedWikiLink Regex
Poem Regex
PortalTemplate Regex
PossibleInterwikis Regex
PossiblyCommentedStub Regex
Pstyles Regex
RFromModificationList string[]
RFromOtherCapitaliastionList string[]
RFromTitleWithoutDiacriticsList string[]
Redirect Regex
RefAfterReflist Regex
ReferenceList Regex
ReferencesHeader Regex
ReferencesTemplate Regex
Refs Regex
RefsGrouped Regex
RegexWordApostrophes Regex
RemoveCatsAllCats Regex
RenamedTemplateParameters List
ReversedItalics Regex
SIAs Regex
SectionLevelTwo Regex
SeeAlso Regex
ShortPagesMonitor Regex
SimpleWikiLink Regex
SisterLinks Regex
SkipTOCTemplateRegex Regex
Small Regex
SourceCode Regex
StarRows Regex
Stub Regex
SupSub Regex
SurnameClarificationTemplates Regex
TalkHeaderTemplate Regex
TargetLessLink Regex
Template Regex
TemplateCall Regex
TemplateEnd Regex
TemplateMultiline Regex
TemplateName Regex
TemplateNameRegex Regex
TemplateRedirects string>.Dictionary
TemplateStart string
ThreeOrMoreNewlines Regex
UnPipedWikiLink Regex
Uncat Regex
UnformattedText Regex
UnitsWithoutNonBreakingSpaces Regex
UnlinkedFloruit Regex
UnnamedReferences Regex
Unreferenced Regex
UntemplatedQuotes Regex
UrlTemplate Regex
UrlValidator Regex
UseDatesTemplate Regex
UserSignature Regex
WhiteSpace Regex
Wi Regex
WikiLink Regex
WikiLinksOnly Regex
WikiLinksOnlyPlusWord Regex
WikiLinksOnlyPossiblePipe Regex
WikiProjectBannerShellTemplate Regex
Wikify Regex
WikipediaBooks Regex
ZerothSection Regex

Public Methods

Method Description
GenerateNamespaceRegex ( ) : string

Generates a regex template for all variants of one or more namespace, e.g. "File|Image"

MakeLangSpecificRegexes ( ) : void

Method Details

GenerateNamespaceRegex() public static method

Generates a regex template for all variants of one or more namespace, e.g. "File|Image"
public static GenerateNamespaceRegex ( ) : string
return string

MakeLangSpecificRegexes() public static method

public static MakeLangSpecificRegexes ( ) : void
return void

Property Details

AllTags public static property

Matches all tags: <nowiki>, <pre>, <math>, <timeline>, <code>, <source>, <cite>, <syntaxhighlight>, <blockquote>, <poem>, <imagemap>, <includeonly>, <onlyinclude>, <noinclude>, <hiero>, <score>
public static Regex,System.Text.RegularExpressions AllTags
return System.Text.RegularExpressions.Regex

AllTemplateRedirects public static property

Nested template regex to match all loaded template redirects from [[WP:AWB/TR]]
public static Regex,System.Text.RegularExpressions AllTemplateRedirects
return System.Text.RegularExpressions.Regex

AllTemplateRedirectsHS public static property

HashSet of all loaded template redirects from [[WP:AWB/TR]]
public static HashSet AllTemplateRedirectsHS
return HashSet

AllTemplateRedirectsList public static property

List of all loaded template redirects from [[WP:AWB/TR]], used when HashSet AllTemplateRedirectsHS cannot be
public static List AllTemplateRedirectsList
return List

AmericanDates public static property

Matches dates in American format – "Month dd, YYYY"
public static Regex,System.Text.RegularExpressions AmericanDates
return System.Text.RegularExpressions.Regex

ArticleToFirstLevelTwoHeading public static property

Matches article text up to but not including first level 2 heading
public static Regex,System.Text.RegularExpressions ArticleToFirstLevelTwoHeading
return System.Text.RegularExpressions.Regex

BASEPAGENAMETemplates public static property

Matches PAGENAME, PAGENAMEE, BASEPAGENAME, BASEPAGENAMEE templates
public static Regex,System.Text.RegularExpressions BASEPAGENAMETemplates
return System.Text.RegularExpressions.Regex

BASEPAGENAMETemplatesL public static property

List of PAGENAME, PAGENAMEE, BASEPAGENAME, BASEPAGENAMEE templates
public static List BASEPAGENAMETemplatesL
return List

BLPSources public static property

Matches the various {{BLP unsourced}} templates
public static Regex,System.Text.RegularExpressions BLPSources
return System.Text.RegularExpressions.Regex

BareExternalLink public static property

Matches a line with a bare external link (no description or name of link)
public static Regex,System.Text.RegularExpressions BareExternalLink
return System.Text.RegularExpressions.Regex

BareRefExternalLink public static property

Matches a bare external link (URL only, no title) within a <ref> tag, group 1 being the URL
public static Regex,System.Text.RegularExpressions BareRefExternalLink
return System.Text.RegularExpressions.Regex

BareRefExternalLinkBotGenTitle public static property

Matches an external link (URL only, no title) within a <ref> tag with a bot generated title or no title, group 1 being the URL, group 2 being the title, if any
public static Regex,System.Text.RegularExpressions BareRefExternalLinkBotGenTitle
return System.Text.RegularExpressions.Regex

Big public static property

Matches <big> tags
public static Regex,System.Text.RegularExpressions Big
return System.Text.RegularExpressions.Regex

BirthsCategory public static property

Matches the XXXX births / xxth Century / XXXX BC births categories (en only)
public static Regex,System.Text.RegularExpressions BirthsCategory
return System.Text.RegularExpressions.Regex

Blockquote public static property

Matches <blockquote> tags
public static Regex,System.Text.RegularExpressions Blockquote
return System.Text.RegularExpressions.Regex

Bold public static property

Matches bold text, group 1 being the text in bold (wiki format ''' only)
public static Regex,System.Text.RegularExpressions Bold
return System.Text.RegularExpressions.Regex

BoldItalics public static property

Matches bold italic text, group 1 being the text in bold italics (wiki format ''''' only)
public static Regex,System.Text.RegularExpressions BoldItalics
return System.Text.RegularExpressions.Regex

Br public static property

Matches the <br/> tag and valid variants
public static Regex,System.Text.RegularExpressions Br
return System.Text.RegularExpressions.Regex

BulletedText public static property

Matches indented, bulleted or numbered text
public static Regex,System.Text.RegularExpressions BulletedText
return System.Text.RegularExpressions.Regex

CEHar public static property

Matches Current events header in arwiki
public static Regex,System.Text.RegularExpressions CEHar
return System.Text.RegularExpressions.Regex

CatImprove public static property

Matches the {{Cat improve}} template and its redirects
public static Regex,System.Text.RegularExpressions CatImprove
return System.Text.RegularExpressions.Regex

Category public static property

Matches categories, group 1 being the category name, group 2 being any sort key
public static Regex,System.Text.RegularExpressions Category
return System.Text.RegularExpressions.Regex

CategoryQuick public static property

Matches the start of a category link
public static Regex,System.Text.RegularExpressions CategoryQuick
return System.Text.RegularExpressions.Regex

Centuryinbox public static property

Matches {{Centuryinbox}} template and its redirects
public static Regex,System.Text.RegularExpressions Centuryinbox
return System.Text.RegularExpressions.Regex

CircaLinkTemplate public static property

Mathes the {{circa}} template and [[circa]] links
public static Regex,System.Text.RegularExpressions CircaLinkTemplate
return System.Text.RegularExpressions.Regex

CircaTemplate public static property

Matches the {{circa}} template
public static Regex,System.Text.RegularExpressions CircaTemplate
return System.Text.RegularExpressions.Regex

CiteTemplate public static property

Matches the various citation templates {{citation}}, {{cite web}} etc. on en-wiki
public static Regex,System.Text.RegularExpressions CiteTemplate
return System.Text.RegularExpressions.Regex

Cites public static property

Matches <cite> tags
public static Regex,System.Text.RegularExpressions Cites
return System.Text.RegularExpressions.Regex

ClockTime public static property

Matches 12-hour clock time without a non-breaking space
public static Regex,System.Text.RegularExpressions ClockTime
return System.Text.RegularExpressions.Regex

Comments public static property

Matches <!-- comments -->
public static Regex,System.Text.RegularExpressions Comments
return System.Text.RegularExpressions.Regex

CurlyDoubleQuotes public static property

Matches common curly double quotes, see [[MOS:PUNCT]]
public static Regex,System.Text.RegularExpressions CurlyDoubleQuotes
return System.Text.RegularExpressions.Regex

Currency public static property

Matches a currency symbol with a space or a non-breaking space
public static Regex,System.Text.RegularExpressions Currency
return System.Text.RegularExpressions.Regex

Dablinks public static property

Finds article disamiguation links from https://en.wikipedia.org/wiki/Wikipedia:Template_messages/General#Disambiguation_and_redirection and https://en.wikipedia.org/wiki/Template:Hatnote_templates (en only)
public static Regex Dablinks
return Regex

DateBirthAndAge public static property

Matches the various {{birth date and age}} templates, group 1 being the year of birth
public static Regex DateBirthAndAge
return Regex

DateYearMonthParameter public static property

Localized version of date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
public static string DateYearMonthParameter
return string

DatedTemplates public static property

List of templates that should be dated (with 'date=Month YYYY' on en-wiki), loaded as first letter upper from https://en.wikipedia.org/wiki/Wikipedia:AWB/Dated_templates, see Category:Wikipedia maintenance categories sorted by month
public static List DatedTemplates
return List

Dates public static property

Matches Dates like 21 January
public static Regex Dates
return Regex

Dates2 public static property

Matches Dates like January 21
public static Regex Dates2
return Regex

DayMonth public static property

Matches day month combinations in International format – "dd Month"
public static Regex DayMonth
return Regex

DayMonthRangeSpan public static property

Matches day month ranges – "13–17 May"
public static Regex DayMonthRangeSpan
return Regex

DeadEnd public static property

Matches {{Deadend|xxx}}, including in {{Multiple issues}}, group 1 is the {{Multiple issues}} template call up to the dead end tag
public static Regex DeadEnd
return Regex

DeadLink public static property

Matches {{dead link}} template and its redirects
public static Regex DeadLink
return Regex

DeathDate public static property

Matches the various {{death date}} templates, group 1 being the year of death
public static Regex DeathDate
return Regex

DeathDateAndAge public static property

Matches the {{death date and age}} template, group 1 being the year of death, group 2 being the year of birth
public static Regex DeathDateAndAge
return Regex

DeathsOrLivingCategory public static property

Matches the various categories for dead people on en wiki, and the living people category
public static Regex DeathsOrLivingCategory
return Regex

Defaultsort public static property

Matches {{DEFAULTSORT}}, "key" group being the sortkey
public static Regex Defaultsort
return Regex

DeletionProtectionTags public static property

matches speedy deletion templates (from Category:Speedy_deletion_templates), deletion templates (Category:Proposed_deletion-related_templates) and protection templates (Category:Protection_templates) Plus optional wiki comment(s) before and/or after
public static Regex DeletionProtectionTags
return Regex

Disambigs public static property

Matches disambig templates, supports language variants e.g. for en-wiki {{disambig}}, {{dab}}. Matches wiki comment on same line after template if present
public static Regex Disambigs
return Regex

DisambigsCleanup public static property

Matches disambig cleanup templates
public static Regex DisambigsCleanup
return Regex

DisambigsGeneral public static property

Matches general disambig templates
public static Regex DisambigsGeneral
return Regex

DoublePipeLink public static property

Matches wikilinks with double pipes e.g. [[text|text2|text3]] and [[text||text3]]
public static Regex DoublePipeLink
return Regex

EmptyBold public static property

Matches empty bold wikitags (zero or more whitespace)
public static Regex EmptyBold
return Regex

EmptyComments public static property

Matches empty comments (zero or more whitespace)
public static Regex EmptyComments
return Regex

EmptyLink public static property

public static Regex EmptyLink
return Regex

EmptyTemplate public static property

public static Regex EmptyTemplate
return Regex

ExternalLinks public static property

(Slowly) Matches external links to all Wikimedia-supported protocols http, https, ftp, mailto, irc, gopher, telnet, nntp, worldwind, news, svn, protocol-relative HTTP(S) Group 1 is the protocol name
public static Regex ExternalLinks
return Regex

ExternalLinksHTTPOnly public static property

Matches external links only to http, https protocols
public static Regex ExternalLinksHTTPOnly
return Regex

ExternalLinksHTTPOnlyQuick public static property

Matches external links only to http, https protocols. For performance, protocol is not part of match value
public static Regex ExternalLinksHTTPOnlyQuick
return Regex

ExternalLinksHeader public static property

Matches the external links level 2 heading, also "Other websites" for simple wikipedia
public static Regex ExternalLinksHeader
return Regex

ExtractTitle public static property

For extraction of page title from URLs
public static Regex ExtractTitle
return Regex

FileNamespaceLink public static property

Matches links to the file namespace (images etc.), group 1 is the filename
public static Regex FileNamespaceLink
return Regex

GalleryTag public static property

Matches <gallery> tags, group 1 is any tag parameters, group 2 is the tag contents
public static Regex GalleryTag
return Regex

GregorianYear public static property

Matches a number between 1000 and 2999
public static Regex GregorianYear
return Regex

HarvTemplate public static property

Matches the various Harvard citation templates on en-wiki
public static Regex HarvTemplate
return Regex

HeadingLevelThree public static property

Matches level 3 headings
public static Regex HeadingLevelThree
return Regex

HeadingLevelTwo public static property

Matches level 2 headings
public static Regex HeadingLevelTwo
return Regex

Headings public static property

Matches headings of all levels, group 1 being the heading name
public static Regex Headings
return Regex

HeadingsWhitespaceBefore public static property

public static Regex HeadingsWhitespaceBefore
return Regex

ISODates public static property

Matches ISO 8601 format dates – YYYY-DD-MM – between 1600 and 2099
public static Regex ISODates
return Regex

ISODatesQuick public static property

Quickly matches ISO 8601 format dates – YYYY-DD-MM – between 1600 and 2099. For counting matches
public static Regex ISODatesQuick
return Regex

Ibid public static property

Matches the {{Ibid}} template
public static Regex Ibid
return Regex

IbidLocCitation public static property

Matches "ibid" and "op cit"
public static Regex IbidLocCitation
return Regex

ImageMap public static property

Matches <imagemap> tags
public static Regex ImageMap
return Regex

Images public static property

Matches images: file namespace links (includes images within gallery tags), {{gallery}} template, image name parameters in infoboxes/templates
public static Regex Images
return Regex

ImagesCountOnly public static property

Faster version of Images, matches same items. For counting of matches only
public static Regex ImagesCountOnly
return Regex

ImagesNotTemplates public static property

Matches images: file namespace links (includes images within gallery tags), {{gallery}} template, but NOT image name parameters in infoboxes/templates
public static Regex ImagesNotTemplates
return Regex

ImperialUnitsInBracketsWithoutNonBreakingSpaces public static property

Matches abbreviated in, oz, feet when in brackets e.g. (3 in); avoids false positives such as "3 in 4..."
public static Regex ImperialUnitsInBracketsWithoutNonBreakingSpaces
return Regex

InUse public static property

Matches the {{In use}}/{{in creation}} templates
public static Regex InUse
return Regex

Includeonly public static property

Matches <includeonly> and <onlyinclude> tags
public static Regex Includeonly
return Regex

IncludeonlyNoinclude public static property

Matches <includeonly> and <onlyinclude> and <noinclude> tags
public static Regex IncludeonlyNoinclude
return Regex

IndentedText public static property

Matches text indented with a :
public static Regex IndentedText
return Regex

InfoBox public static property

Matches infoboxes, group 1 being the template name of the infobox
public static Regex InfoBox
return Regex

InfoBoxDOBFields public static property

List of known infobox fields holding date of birth
public static List InfoBoxDOBFields
return List

InfoBoxDODFields public static property

List of known infobox fields holding date of death
public static List InfoBoxDODFields
return List

InfoBoxPOBFields public static property

public static List InfoBoxPOBFields
return List

InfoBoxPODFields public static property

public static List InfoBoxPODFields
return List

InternationalDates public static property

Matches dates in International format – "dd Month YYYY"
public static Regex InternationalDates
return Regex

Italics public static property

Matches italic text, group 1 being the text in italics (wiki format '' only)
public static Regex Italics
return Regex

LinkFGAs public static property

Matches {{Link FA|xxx}}, {{Link GA|xxx}}, {{Link FL|xxx}}
public static Regex LinkFGAs
return Regex

LivingPeopleRegex2 public static property

Matches the {{recentlydeceased}} templates and its redirects
public static Regex LivingPeopleRegex2
return Regex

LooseCategory public static property

Matches Category links. Group 1 is the category name, group 2 is the pipe plus sortkey, if present.
public static Regex LooseCategory
return Regex

LooseImage public static property

Matches wikilinks to files/images, group 1 being the namespace, group 2 the image name, group 3 the description/any extra arguments
public static Regex LooseImage
return Regex

MagicWordTemplates public static property

List of Magic words from [[Category:Pages_which_use_a_template_in_place_of_a_magic_word]]
public static Regex MagicWordTemplates
return Regex

MagicWordsBehaviourSwitches public static property

List of magic words behaviour switches from https://en.wikipedia.org/wiki/Help:Magic_words#Behavior_switches
public static Regex MagicWordsBehaviourSwitches
return Regex

MaintenanceTemplates public static property

Matches the maintenance tags (en-wiki only) such as orphan, cleanup
public static Regex MaintenanceTemplates
return Regex

MathPreSourceCodeComments public static property

Matches math, pre, source, code, syntaxhighlight tags or comments
public static Regex MathPreSourceCodeComments
return Regex

MeaningsOfMinorPlanetNames public static property

Matches anything starting with Meanings of minor planet names
public static Regex MeaningsOfMinorPlanetNames
return Regex

MetresFeetConversionNonBreakingSpaces public static property

Matches "50m (170&nbsp;ft)"
public static Regex MetresFeetConversionNonBreakingSpaces
return Regex

MonthDay public static property

Matches month day combinations in American format – "Month dd"
public static Regex MonthDay
return Regex

MonthDayRangeSpan public static property

Matches month day ranges – "May 13–17"
public static Regex MonthDayRangeSpan
return Regex

Months public static property

Matches the month names and provides a capturing group when used in a regular expression
public static string Months
return string

MonthsNoGroup public static property

Matches the month names, without providing a capturing group when used in a regular expression
public static string MonthsNoGroup
return string

MoreNoFootnotes public static property

Matches {{no footnotes}} OR {{more footnotes}} templates
public static Regex MoreNoFootnotes
return Regex

MultipleIssues public static property

Matches the {{Multiple issues}} template
public static Regex MultipleIssues
return Regex

MultipleIssuesArticleMaintenanceTemplates public static property

Matches the cleanup templates that can be moved into the {{multiple issues}} article-level template
public static Regex MultipleIssuesArticleMaintenanceTemplates
return Regex

MultipleIssuesSectionMaintenanceTemplates public static property

Matches the cleanup templates that can be moved into the {{multiple issues}} section-level template
public static Regex MultipleIssuesSectionMaintenanceTemplates
return Regex

NamedReferences public static property

Matches full named references in format <ref name="foo">text</ref> Ref name is group 2, ref value is group 3
public static Regex NamedReferences
return Regex

NamedReferencesIncludingCondensed public static property

Matches named references in format <ref name="foo">text</ref> or <ref name="foo" /> Ref name is group 2, ref value is group 3
public static Regex NamedReferencesIncludingCondensed
return Regex

NamespacesCaseInsensitive public static property

Variables.NamespacesCaseInsensitive compiled into regexes
public static Dictionary NamespacesCaseInsensitive
return Regex>.Dictionary

NestedTemplates public static property

Matches single and multiline templates, AND those with nested templates
public static Regex NestedTemplates
return Regex

NewUnReviewedArticle public static property

Matches the {{New unreviewed article}} template
public static Regex NewUnReviewedArticle
return Regex

Newline public static property

Matches words
public static Regex Newline
return Regex

NoGeneralFixes public static property

No General Fixes regex for checkpage parsing
public static Regex NoGeneralFixes
return Regex

NoRETF public static property

No RegexTypoFix regex for checkpage parsing
public static Regex NoRETF
return Regex

Noinclude public static property

Matches <noinclude> tags
public static Regex Noinclude
return Regex

NonDeadEndPageTemplates public static property

Matches templates with many wikilinks to avoid tagging the transcluding page as dead-end and/or stub (en only)
public static Regex NonDeadEndPageTemplates
return Regex

NonHTTPProtocols public static property

Matches start of links to all Wikimedia-supported protocols except http, https: ftp, mailto, irc, gopher, telnet, nntp, worldwind, news, svn
public static Regex NonHTTPProtocols
return Regex

NotATypo public static property

Matches {{Not a typo}} template and redirects
public static Regex NotATypo
return Regex

NotesHeader public static property

Matches the Notes level 2 heading
public static Regex NotesHeader
return Regex

Nowiki public static property

Matches <nowiki> tags
public static Regex Nowiki
return Regex

Orphan public static property

Matches {{orphan}} tag, including in {{Multiple issues}}, named group MI is the {{Multiple issues}} template call up to the orphan tag
public static Regex Orphan
return Regex

PeopleFromCategory public static property

Matches the "People from ..." en-wiki categories
public static Regex PeopleFromCategory
return Regex

PeopleInfoboxTemplates public static property

Matches people infoxboxes from Category:People infobox templates
public static Regex PeopleInfoboxTemplates
return Regex

Percent public static property

Matches a percentage with a space or a non-breaking space
public static Regex Percent
return Regex

Persondata public static property

Matches {{persondata}} template, or {{personendaten}} on de-wiki
public static Regex Persondata
return Regex

PipedWikiLink public static property

Matches piped wikilinks, group 1 is target, group 2 the text
public static Regex PipedWikiLink
return Regex

Poem public static property

Matches <poem> tags
public static Regex Poem
return Regex

PortalTemplate public static property

Matches {{Portal}} template
public static Regex PortalTemplate
return Regex

PossibleInterwikis public static property

Matches links that may be interwikis, i.e. containing colon, group 1 being the wiki language, group 2 being the link target, group 3 any comment after the link
public static Regex PossibleInterwikis
return Regex

PossiblyCommentedStub public static property

Matches both commented and uncommented stubs
public static Regex PossiblyCommentedStub
return Regex

Pstyles public static property

Matches text within <p style...>...</p> HTML tags
public static Regex Pstyles
return Regex

RFromModificationList public static property

public static string[] RFromModificationList
return string[]

RFromOtherCapitaliastionList public static property

public static string[] RFromOtherCapitaliastionList
return string[]

RFromTitleWithoutDiacriticsList public static property

public static string[] RFromTitleWithoutDiacriticsList
return string[]

Redirect public static property

Matches redirects Don't use directly, use Tools.IsRedirect() and Tools.RedirectTarget instead
public static Regex Redirect
return Regex

RefAfterReflist public static property

Matches any of the recognised templates for displaying cite references followed by a >ref< reference
public static Regex RefAfterReflist
return Regex

ReferenceList public static property

Matches the "reflist", "references-small", "references-2column" references display templates
public static Regex ReferenceList
return Regex

ReferencesHeader public static property

Matches the References level 2 heading
public static Regex ReferencesHeader
return Regex

ReferencesTemplate public static property

Matches any of the recognised templates for displaying cite references e.g. {{reflist}}, {{refs}}, <references/>
public static Regex ReferencesTemplate
return Regex

Refs public static property

Matches <ref> tags, including named references and condensed named references
public static Regex Refs
return Regex

RefsGrouped public static property

Matches <ref> tags with group parameter, optionally named as well. Does not match regular named references
public static Regex RefsGrouped
return Regex

RegexWordApostrophes public static property

Matches words, and allows words with apostrophes to be treated as one whole word
public static Regex RegexWordApostrophes
return Regex

RemoveCatsAllCats public static property

public static Regex RemoveCatsAllCats
return Regex

RenamedTemplateParameters public static property

List of templates (first letter lower) with old parameter and new for parameter renaming
public static List RenamedTemplateParameters
return List

ReversedItalics public static property

Matches </i>...<i> reversed italics tags, group 1 being the content between the tags
public static Regex ReversedItalics
return Regex

SIAs public static property

Matches SIA templates (en only)
public static Regex SIAs
return Regex

SectionLevelTwo public static property

Matches the whole of a level 2 section including heading and any subsections up to but not including the next level 2 section
public static Regex SectionLevelTwo
return Regex

SeeAlso public static property

Matches the 'See also' level 2 heading, also "Related pages" for simple en-wiki
public static Regex SeeAlso
return Regex

ShortPagesMonitor public static property

Matches {{Short pages monitor}} plus comment, generated from {{subst:Long comment}}
public static Regex ShortPagesMonitor
return Regex

SimpleWikiLink public static property

Matches all wikilinks, categories, images etc. with nested links on same line. Group 1 is the link content
public static Regex SimpleWikiLink
return Regex

SisterLinks public static property

Matches the sister links templates such as {{wiktionary}}
public static Regex SisterLinks
return Regex

SkipTOCTemplateRegex public static property

Matches the {{skip to talk}} template and its redirects
public static Regex SkipTOCTemplateRegex
return Regex

Small public static property

Matches <small> tags, including nested tags. Group 1 is the text within the tags
public static Regex Small
return Regex

SourceCode public static property

Matches <source></source>, <syntaxhighlight>, <code></code>, <tt></tt> tags, group 1 is the tag contents
public static Regex SourceCode
return Regex

StarRows public static property

Matches a row beginning with an asterisk, allowing for spaces before
public static Regex StarRows
return Regex

Stub public static property

Matches stubs
public static Regex Stub
return Regex

SupSub public static property

Matches <sup> and <sub> tags
public static Regex SupSub
return Regex

SurnameClarificationTemplates public static property

Matches templates from [[Category:Hatnote templates for names]], excluding name order templates
public static Regex SurnameClarificationTemplates
return Regex

TalkHeaderTemplate public static property

Matches the {{talk header}} templates and its redirects. Also matches to whitespace after template, but not newline before a heading following
public static Regex TalkHeaderTemplate
return Regex

TargetLessLink public static property

public static Regex TargetLessLink
return Regex

Template public static property

Matches single line templates, NOT nested templates
public static Regex Template
return Regex

TemplateCall public static property

Matches templates, including templates with the template namespace prefix
public static Regex TemplateCall
return Regex

TemplateEnd public static property

Matches the end of a template call including trailing whitespace
public static Regex TemplateEnd
return Regex

TemplateMultiline public static property

Matches single and multiline templates, NOT nested templates
public static Regex TemplateMultiline
return Regex

TemplateName public static property

Matches templates: group 1 matches the names of templates. Not for templates including the template namespace prefix
public static Regex TemplateName
return Regex

TemplateNameRegex public static property

Matches the start of template calls to extract the template name, group 1 is the template name
public static Regex TemplateNameRegex
return Regex

TemplateRedirects public static property

Dictionary of template redirects (as a nested template regex) and the actual template name
public static Dictionary TemplateRedirects
return string>.Dictionary

TemplateStart public static property

Piece of template call, including curly brace and possible namespace
public static string TemplateStart
return string

ThreeOrMoreNewlines public static property

Matches three or more consecutive new lines
public static Regex ThreeOrMoreNewlines
return Regex

UnPipedWikiLink public static property

Matches unpiped wikilinks, group 1 is text
public static Regex UnPipedWikiLink
return Regex

Uncat public static property

Matches uncategorised templates: {{Uncat}}, {{Uncategorised}}, {{Uncategorised stub}} allowing for nested subst: {{uncategorised|date={{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}
public static Regex Uncat
return Regex

UnformattedText public static property

Matches unformatted text regions: nowiki, pre, math, html comments, timelines
public static Regex UnformattedText
return Regex

UnitsWithoutNonBreakingSpaces public static property

Matches abbreviated SI units without a non-breaking space, notably does not correct millimetres without a space due to firearms articles using this convention
public static Regex UnitsWithoutNonBreakingSpaces
return Regex

UnlinkedFloruit public static property

public static Regex UnlinkedFloruit
return Regex

UnnamedReferences public static property

Matches unnamed references in format <ref>...</ref> group 1 being the reference text
public static Regex UnnamedReferences
return Regex

Unreferenced public static property

Matches the {{Unreferenced}} template
public static Regex Unreferenced
return Regex

UntemplatedQuotes public static property

Matches quotations outside of templates but within a pair of quotation marks, notably exlcuding straight single quotes
public static Regex UntemplatedQuotes
return Regex

UrlTemplate public static property

Matches the various url templates {{URL}} etc. on en-wiki
public static Regex UrlTemplate
return Regex

UrlValidator public static property

From http://www.dreamincode.net/code/snippet3490.htm
public static Regex UrlValidator
return Regex

UseDatesTemplate public static property

Matches the {{use dmy dates}} family of templates and redirects
public static Regex UseDatesTemplate
return Regex

UserSignature public static property

Matches links to use or user talk namespace
public static Regex UserSignature
return Regex

WhiteSpace public static property

Matches consecutive whitespace
public static Regex WhiteSpace
return Regex

Wi public static property

Matches Wiktionary redirect and Wikiquote redirect templates (en only)
public static Regex Wi
return Regex

WikiLink public static property

Matches all wikilinks (including interwikis, images, categories etc.) up to pipe or end of wikilink. Group 1 is the target of the wikilink
public static Regex WikiLink
return Regex

WikiLinksOnly public static property

Matches only internal wiki links
public static Regex WikiLinksOnly
return Regex

WikiLinksOnlyPlusWord public static property

Matches only internal wikilinks (with or without pipe) with extra word character(s) e.g. [[link]]age or [[here|link]]age https://en.wikipedia.org/wiki/Wikipedia_talk:AutoWikiBrowser/Feature_requests#Improve_HideText.HideMore.28.29
public static Regex WikiLinksOnlyPlusWord
return Regex

WikiLinksOnlyPossiblePipe public static property

Matches only internal wiki links, possibly with pipe; group 1 is target, group 2 is pipe text, if piped link
public static Regex WikiLinksOnlyPossiblePipe
return Regex

WikiProjectBannerShellTemplate public static property

Matches the {{WikiProject banner shell}} templates and its redirects
public static Regex WikiProjectBannerShellTemplate
return Regex

Wikify public static property

Matches {{wikify}}, {{underlinked}} tag (including within {{multiple issues}} for en-wiki)
public static Regex Wikify
return Regex

WikipediaBooks public static property

Matches the {{Wikipedia books}} template
public static Regex WikipediaBooks
return Regex

ZerothSection public static property

Matches the first section of an article, if the article has sections, else the whole article
public static Regex ZerothSection
return Regex