MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Regular_Expressions",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "325": {
                "pageid": 325,
                "ns": 0,
                "title": "Red Hat",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Change IP Settings ==\nYou need to update the following configuration\n# Network interface(s)\n#* EG for <code>eth0</code> update <code> /etc/sysconfig/network-scripts/ifcfg-eth0 </code>\n# Default gateway and hostname\n#* <code>/etc/sysconfig/network </code>\n# DNS servers\n#* <code>/etc/resolv.conf </code>\n# Restart server networking to apply\n#* <code>/etc/init.d/network restart</code>\n\n'''Example <code>ifcfg-eth''x''</code> file...'''\n<pre>\nDEVICE=eth0\nNM_CONTROLLED=\"yes\nONBOOT=yes\nBOOTPROTO=static\nPEERDNS=no\nIPADDR=10.3.0.144\nNETMASK=255.255.255.0\n</pre>\n\nSee [[Troubleshooting_(Ubuntu)#No_NIC|No NIC]] if you've changed the NIC (eg due to a VMware clone)\n\n== Updates ==\n* Update server\n** <code> yum update </code>\n* Get installed package version\n** EG <code> rpm -q openssl </code>\n\n== Subscriptions ==\n\n subscription-manager list\n\n\n[[Category:Linux]]"
                    }
                ]
            },
            "244": {
                "pageid": 244,
                "ns": 0,
                "title": "Regex Examples",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "See the [[Regular Expressions]] page for more detail on syntax.\n\n== Useful/Standard RegEx ==\n{|class=\"vwikitable\" \n|- \n! Matches                  !!  Expression\n|-\n| '''IP Address'''\n| <code><nowiki> ^\\b((25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d?\\d)\\.){3}(25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d?\\d)\\b </nowiki></code>\n|-\n| '''Hostname''' (no domain)\n| <code><nowiki> \\A(\\w|-)+ </nowiki></code>\n|-\n| '''Email address'''\n| <code><nowiki> \\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b </nowiki></code>\n|-\n| '''Multiple whitespace'''\n| <code><nowiki> \\b {2,}\\b </nowiki></code>\n|}\n\n== Detailed Examples ==\n=== Logfile Name ===\n''' <code> \\d{4}-[A-Za-z]{3}-Week\\d{1}.log </code> '''\n\nExample matches...\n* <code> 2010-Feb-Week4.log </code>\n* <code> 2009-Dec-Week2.log </code>\n* <code> 1234-aBc-Week0.log </code>\n\n=== Between Parentheses ===\n''' <code> (?<=\\[)(.*?)(?=\\]) </code> '''\n\nMatches everything between <code> [ </code> and <code> ]</code>, so for example...\n* <code> VMFS_SCSI_DS_01 </code> is matched from <code> [VMFS_SCSI_DS_01] My_VM/MyVM.vmdk </code>\n\nIts essentially done via three chunks of the regex...\n# <code><nowiki> (?<=\\[) </nowiki></code>\n#* Requires that <code> [ </code> immediately proceeds the match\n# <code> (.*?) </code>\n#* Matches everything\n# <code> (?=\\]) </code>\n#* Requires that <code> ] </code> immediately follows the match\n\n=== VMHBA LUN ID ===\n'''<code> (?<=:)([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$ </code>\n\nFinds a number between 0 and 255 immediately after a <code>:</code> at the end of a line, specifically intended to get the LUN ID from a VMware canonical path, so for example...\n* <code>13</code> is matched from <code>vmhba3:0:13</code>\n\nStepping through the regex...\n# <code><nowiki> (?<=:) </nowiki></code>\n#* Requires that <code> : </code> immediately proceeds the match\n# <code>([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])</code>\n#* Matches any number between 0 and 255\n# <code>$</code>\n#* Ensures that the proceeding match occurs at the end of a line\n\n=== vRanger Backup text in VM Notes ===\n'''<code>\\s?\\bvRanger.*Repository \\[.*\\]\\s?</code>'''\n\nFinds the text created by vRanger in a VM's notes (so you can strip it out)...\n* EG <code>vRanger Pro Backup: Type [Full] Result [Success] Time [27/09/2010 06:46:54] Repository [VC_Server]</code>\n\nStepping through the regex...\n# <code>\\s?</code>\n#* Matches any white-space at the start of the match\n# <code>\\bvRanger.*</code>\n#* Matches <code>vRanger</code> at the start of a word and anything after until...\n# <code>Repository \\[.*\\]</code>\n#* Matches the end of a vRanger text segment, <code>Repository [hostname]</code>\n# <code>\\s?</code>\n#* Matches any white-space at the end of the match\n\n=== Script Version ===\n'''<code>(?<=v)[0-9]+(\\.[0-9]+)+(?=.)</code>'''\n\nGets the script version number off the end of a script name\n* EG Get <code> 1.2.3 </code> from <code>Script-v1.2.3.ps1</code>\n\nStepping through the regex...\n# <code>(?<=v)</code>\n#* Requires that <code>v</code> immediately precedes the match\n# <code>[0-9]+</code>\n#* Matches one or more digits\n# <code>(\\.[0-9]+)+</code>\n#* Matches <code>.n</code> one or more times\n# <code>(?=.)</code>\n#* Requires that <code>.</code> follows the match\n\n=== Lab Manager VM Prefix ===\n'''<code>(\\b\\d{6}-)</code>'''\n\nMatches the numeric prefix at the start of a Lab Manager VM name\n* EG Matches <code>002310-</code> from <code> 002310-Server-A-10</code>\n\n[[Category:Regex]]"
                    }
                ]
            }
        }
    }
}