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||"
    },
    "query": {
        "pages": {
            "765": {
                "pageid": 765,
                "ns": 0,
                "title": "Red Hot Chili Peppers",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{TOCright}}\n[[Lyrics|Back to Lyrics]]<br><br>\nThe Red Hot Chili Peppers\n<br>[[wikipedia:Red_Hot_Chili_Peppers|More Info]]\n\n== Snow (Hey Oh) ==\n{|- class=\"wikitableharm\" width=\"1240\"\n|-\n! width=\"620px\" |Snow (Hey Oh)\n! width=\"620px\" |Sneeuw (Hallo)\n|-\n|\n<pre>Come to decide that the things that I tried\nWere in my life just to get high on\n\nWhen I sit alone come get a little more known\nBut I need more than myself this time\n\nStep from the road to the sea to the sky\nAnd I do belive what we rely on\n\nWhen I lay it on\nCome get to play it on\nAll my life to sacrifice\n\nChorus:\nHey oh listen what i say oh\nI got your\nHey oh listen what I say oh\n\nWhen will I know that I really cant go\nTo the well one more time to decide on\n\nWhen it's killing me\nWhat I really see\nAll that I need to look inside\n\nCome to believe that I better not leave\nBefore I get my chance to ride\n\nWhen it's killing me\nWhat I really see\nAll that I need to look inside\n\nThe more I see the less I know\nThe more I like to let it go... hey oh\n\nDeep beneath the cover of another perfect wonder\nWhere it's so white as snow\n\nPrivately divided by a world so undecided\nAnd there's nowhere to go\n\nIn beneath the cover of another perfect wonder\nWhere it's so white as snow\n\nRunning through the field where all my tracks will\nBe concealedand there is nowhere to go\n\nInstrumental break\n\nWhen to descend to amend for a friend\nAll the channels that have broke down\n\nNow you bring it up\nI'm gonna ring it up\nJust to hear you sing it out\n\nStep from the road to the sea to the sky\nAnd I do belive what we rely on\n\nWhen I lay it on\nCome get to play it on\nAll my life to sacrifice\n\nChorus\nThe more I see the less I know\nThe more I like to let it go... hey oh\n\n</pre>\n| &nbsp;\n|}\n\n== Under the bridge ==\n<pre>\nSometimes I feel\nLike I don't have a partner\nSometimes I feel\nLike my only friend\nIs the city I live in\nThe city of angels\nLonely as I am\nTogether we cry\n\nI drive on her streets\nCuz she's my companion\nI walk through her hills\nCuz she knows who I am\nShe sees my good deeds and\nShe kisses me windy\nI never worry\nNow that is a lie\n\nI don't ever want to feel\nLike I did that day\nTake me to the place I love\nTake me all the way\n(repeat)\n\nYeah\n(repeat x2)\n\nIt's hard to believe\n\nThat there's nobody out there\nIt's hard to believe\nThat I'm all alone\nAt least I have her love\nThe city she loves me\nLonely as I am\nTogether we cry\n\nI don't ever want to feel\nLike I did that day\nTake me to the place I love\nTake me all that way\n(repeat x2)\n\nYeah yeah\nMo no no no\nYeah yeah\nLove me I said\nYeah yeah\n\nUnder the bridge downtown\nIs where I drew some blood\nUnder the bridge downtown\nI could not get enough\nUnder the bridge downtown\nForgot about my love\nUnder the bridge downtown\nI gave my life away\n\nYeah yeah yeah\nNo no no no no\nYeah yeah\nNo no I said\nYeah yeah\nI stand\n</pre>\n\n== See also ==\n\n== Reference ==\n<references/>\n\n[[Category:Artist]]\n[[Category:Index]]\n[[Category:Music]]"
                    }
                ]
            },
            "594": {
                "pageid": 594,
                "ns": 0,
                "title": "Regex Samples",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{{TOCright}}\n\n== Regex Samples Figures 1 ==\nAlways be precise in the way you specify your data. The following question can be multiple interpreted.\n<br>Create a regular expression that matches the figures:\n* 1 - 49\n* 01 - 49\nOf course the '''<nowiki>^[0-4]?[0-9]</nowiki>''' is much too simple.\n \n{| class=\"wikitableharmcenter\" width=\"850\"\n|-\n| [[File:Regex-21-001.png|thumb|center|750px| Matches correctly but recognize 11 first as 1 and 1]]\n|-\n| [[File:Regex-21-002.png|thumb|center|750px| Matches correctly but recognize 11 first as 1 and 1]]\n|- \n| [[File:Regex-21-003.png|thumb|center|750px| Matches correctly but recognize 51 as 5 and 1]]\n|-\n| [[File:Regex-21-004.png|thumb|center|750px| Matches all correctly]]\n|}\n\n== Regex Samples Figures 1 ==\nAlways be precise in the way you specify your data. The following question can be multiple interpreted.\n<br>Create a regular expression that matches the figures:\n* 25 - 67\n{| class=\"wikitableharmcenter\" width=\"850\"\n|-\n| [[File:Regex-22-002.png|thumb|center|750px| Matches correctly 25 - 27 but only on one line]] \n|-\n| [[File:Regex-22-001.png|thumb|center|750px| Matches correctly all figures 25 - 67]]\n|}\n\n== Regex Email Address ==\nAlways be precise in the way you specify your data. The following question can be multiple interpreted.\n<br>Create an email checker for input validation of an email.\n{| class=\"wikitableharm\" width=\"850\"\n|-\n| [[File:Regex-23-001.png|thumb|center|750px| Email checker ]] \n|- style=\"text-align:left;\" \n| '''Please note'''\n* The case insensitive option has to be set. <ref>[http://www.regular-expressions.info/email.html Regular Expressions], This example of the email checker is discussed in more details on the webpage of Jan Goyvaerts.</ref>.\n* In the above given example the first line is not matched because there is an '''''hidden space behind the email address'''''!  <br>Beware for such conditions, because the 'Show invisibles' does not show these characters!\n|- style=\"text-align:left;\"\n|  Please note that not all strange entries will work. There seems to exist an email address with the top level domain name museum. \nIf you want to validate such addresses to than you have to use something like: \n<br>'''<nowiki>^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$</nowiki>'''\n<br>If you use a more simple regex there is a trade-off. Look at:\n<br>'''<nowiki>^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$</nowiki>'''\n<br>Which allows email addresses like '''xx.yy@domain.office''', which is most likely someone who forget the real extension like '''.nl'''.\n|}\n\nThere is an ''Official Standard: RFC 5322'' regex for email addresses, but alas also not full proof. Here it is: <br>\n'''<nowiki>  (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*  |  \"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]  |  \\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\") @ (?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\n  |  \\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}   (?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]: (?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]  |  \\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)  \\])\n</nowiki>'''.\nAlso not full proof.\n\n\n\n=== Compromize ===\n{| class=\"wikitableharm\" width=\"850\"\n|-\n| [[File:Regex-23-002.png|thumb|center|750px|Email Checker Compromize]]\n|-\n| Will not allow strange preceding characters. A full proof email checkers does not exist.\n|}\n\n== HTML Tags ==\nThe tags in html for wikipedia may contain a cite reference (a tag &lt;sup id=\"cite_ref-xxxx\">....</sup&gt;). \n<br>When you copy such a text you do not want to have them. <ref name=\"wikiciteref\">[https://regex101.com/r/Ocir5r/1/ reg101], Cite Ref wikipedia example.</ref>\n{| class=\"wikitableharm\" width=\"900px\" \n|-\n! width=\"300px\" | Regex\n! width=\"600px\" | Description\n|-\n| '''/<sup\\b id=\"cite_ref[^>]*>(.*?)<\\/sup>/''' || The regex has one limitation, it can not cope with CR/LF within the tags. \n|-\n| '''/<sup\\b id=\"cite_ref[^>]*>(.*?)<\\/sup>/gs''' || Works in the online tools, but not in PHP the option g is not allowed.\n|-\n| '''/<sup\\b id=\"cite_ref[^>]*>(.*?)<\\/sup>/s''' || Works in PHP and in the '''preg_replace'''.\n|}\n\n== See also ==\n<span class=\"editsection\">[[#content|top]]</span>\n\n== Reference ==\n<span class=\"editsection\">[[#content|top]]</span>\n<references/>\n\n[[Category:Index]]\n[[Category:Tools]]"
                    }
                ]
            }
        }
    }
}