Regular Expressions 101

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/

Test String

Code Generator

Generated Code

$re = '/(\d+(?:\.\d+)+)/'; $str = '<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="fr-FR"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="fr-FR"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="fr-FR"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="fr-FR"> <!--<![endif]--> <head> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--> <title>LibreOffice Stable | Communauté LibreOffice francophone</title> <meta name="generator" content="SilverStripe - http://silverstripe.org" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="description" content="LibreOffice, Download, download LibreOffice, download options, Windows, Linux, Mac OS X" /> <meta name="x-subsite-id" content="17" /> <base href="https://fr.libreoffice.org/"><!--[if lte IE 6]></base><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href=\'//fonts.googleapis.com/css?family=Lato:100,300,400,700,900,300italic,400italic&subset=latin,latin-ext\' rel=\'stylesheet\' type=\'text/css\'> <link rel="shortcut icon" href="/themes/libreofficenew/favicon.ico" /> <script src="themes/libreofficenew/js/modernizr-2.6.2-respond-1.1.0.min.js"></script> <link rel="stylesheet" type="text/css" href="/themes/libreofficenew/css/bootstrap.min.css?m=1396490701" /> <link rel="stylesheet" type="text/css" href="/themes/libreofficenew/css/main.css?m=1462981841" /> <link rel="stylesheet" type="text/css" href="/themes/libreofficenew/css/font-awesome.min.css?m=1389089681" /> <link rel="stylesheet" type="text/css" href="/themes/libreofficenew/css/flexslider.css?m=1390320474" /> </head> <body class="Download" id="libreoffice-stable"> <!--[if lt IE 7]> <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> <![endif]--> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand img-responsive" href="/"><img src="themes/libreofficenew/img/logo.png" alt="logo"></a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li> <a href="/discover/libreoffice/" class="link dropdown-toggle" data-toggle="dropdown">Découvrir<b class="caret"></b></a> <ul class="dropdown-menu"><li><a href="/discover/libreoffice/" class="link">Qu&#039;est-ce que LibreOffice</a></li><li><a href="/discover/new-features/" class="link">Nouvelles fonctionnalités</a></li><li><a href="/discover/writer/" class="link">Writer</a></li><li><a href="/discover/calc/" class="link">Calc</a></li><li><a href="/discover/impress/" class="link">Impress</a></li><li><a href="/discover/draw/" class="link">Draw</a></li><li><a href="/discover/base/" class="link">Base</a></li><li><a href="/discover/math/" class="link">Math</a></li><li><a href="/discover/charts/" class="link">Diagrammes</a></li><li><a href="/discover/templates-and-extensions/" class="link">Modèles et extensions</a></li><li><a href="/discover/screenshots/" class="link">Copies d&#039;écran</a></li></ul> </li> <li> <a href="/download/libreoffice-stable/" class="section dropdown-toggle" data-toggle="dropdown">Télécharger<b class="caret"></b></a> <ul class="dropdown-menu"><li><a href="/download/libreoffice-stable/" class="current">LibreOffice Stable</a></li><li><a href="/download/libreoffice-fresh/" class="link">LibreOffice Évolution</a></li><li><a href="/download/release-notes/" class="link">Notes de version</a></li><li><a href="/download/pre-releases/" class="link">Versions de développement</a></li><li><a href="/download/portable-versions/" class="link">Versions portables &amp; Images DVD</a></li><li><a href="/download/bug-calc-tri/" class="link">Bug_Calc_Tri</a></li></ul> </li> <li> <a href="/get-help/feedback/" class="link dropdown-toggle" data-toggle="dropdown">Aide<b class="caret"></b></a> <ul class="dropdown-menu"><li><a href="/get-help/feedback/" class="link">Poser une question &amp; Retour d&#039;expérience</a></li><li><a href="/get-help/community-support/" class="link">Aide de la communauté</a></li><li><a href="/get-help/documentation/" class="link">Documentation</a></li><li><a href="/get-help/mailing-lists/" class="link">Listes de discussion</a></li><li><a href="/get-help/nabble/" class="link">Forum Nabble</a></li><li><a href="/get-help/install-howto/" class="link">Instructions d&#039;installation</a></li><li><a href="/get-help/professional-support/" class="link">Support professionnel</a></li><li><a href="/get-help/system-requirements/" class="link">Prérequis logiciels et matériels</a></li><li><a href="/get-help/accessibility/" class="link">Accessibilité</a></li><li><a href="/get-help/bug/" class="link">Assistant de soumission de bug (EN)</a></li></ul> </li> <li> <a href="/community/get-involved/" class="link dropdown-toggle" data-toggle="dropdown">Communauté<b class="caret"></b></a> <ul class="dropdown-menu"><li><a href="/community/get-involved/" class="link">Contribuer</a></li><li><a href="/community/design/" class="link">Design</a></li><li><a href="/community/developers/" class="link">Développeurs</a></li><li><a href="/community/docs-team/" class="link">Documentation</a></li><li><a href="/community/infrastructure/" class="link">Infrastructure</a></li><li><a href="/community/localization/" class="link">L10n</a></li><li><a href="/community/marketing/" class="link">Marketing</a></li><li><a href="/community/nlc/" class="link">Projets Native-Lang</a></li><li><a href="/community/qa/" class="link">Tests Assurance Qualité</a></li><li><a href="http://owncloud.documentfoundation.org" class="link">OwnCloud</a></li><li><a href="http://pad.documentfoundation.org/" class="link">Pads</a></li><li><a href="http://wiki.documentfoundation.org" class="link">Wiki</a></li></ul> </li> <li> <a href="/events/" class="link">Événements</a> </li> <li> <a href="/about-us/who-are-we/" class="link dropdown-toggle" data-toggle="dropdown">À propos<b class="caret"></b></a> <ul class="dropdown-menu"><li><a href="/about-us/who-are-we/" class="link">Qui sommes-nous ?</a></li><li><a href="/about-us/governance/" class="link">Gouvernance</a></li><li><a href="/about-us/advisory-board-members/" class="link">Membres du Conseil Consultatif</a></li><li><a href="/about-us/certification/" class="link">Certification LibreOffice</a></li><li><a href="/about-us/licenses/" class="link">Licences</a></li><li><a href="/about-us/source-code/" class="link">Code Source</a></li><li><a href="/about-us/security/" class="link">Sécurité</a></li><li><a href="/about-us/imprint/" class="link">Imprint</a></li><li><a href="/about-us/awards/" class="link">Récompenses</a></li><li><a href="/about-us/credits/" class="link">Crédits</a></li><li><a href="/about-us/privacy/" class="link">Privacy Policy</a></li></ul> </li> <li> <a href="/donate/" class="link">Donner</a> </li> </ul> </div> </div> </div> <section id="content1" class="section"> <div class="container"> <article> <div class="row col-sm-8 margin-20"> <ul class="breadcrumb"> <li><a href="/download/libreoffice-stable/">Télécharger</a> <span class="divider"> / </span></li> <li><li class="active">LibreOffice Stable</li></li> </ul> <h3>LibreOffice Stable</h3> <p class="lead_libre">LibreOffice est intuitive et facile à utiliser</p> <!-- User-Agent: Accept-language: type:win-x86 LangCand:fr_FR|||fr_FR lang:fr type win-x86 - lang fr - version 5.0 --> <p><strong>"Stable" est utilisable par tous, y compris dans un cadre professionnel</strong>. Les utilisateurs avancés impatients de tester les nouveautés de LibreOffice peuvent choisir la version "<a title="Aller à la page de téléchargement de la version &quot;Évolution&quot;" href="/download/libreoffice-fresh/" target="_blank">Évolution</a>".<br>Pour un support commercial autour de LibreOffice, veuillez consulter <a href="/get-help/professional-support/">notre liste de partenaires certifiés</a>.</p> <h6><strong><em>ATTENTION</em></strong><em> : Pour </em><em><strong>Linux</strong> et </em><strong>Mac OS X</strong><em> l\'installeur principal ne fournit que la version anglaise. Après l\'installeur principal, téléchargez et installez l\'interface en français (bouton "Interface utilisateur traduite" plus bas sur cette page)<br>Pour </em><strong>MS-Windows</strong><em>, </em><strong>Linux</strong><em> et </em><strong>Mac OS</strong><strong> X</strong><em>, l\'aide intégrée n\'est pas installée par défaut. Elle est disponible plus bas sur cette page.<br></em></h6> <h2>Installeur principal</h2> <p>Sélectionné : LibreOffice 5.0.6 pour Windows - <a href=\'/download/libreoffice-stable/?version=5.0&lang=fr#change\'>modifier ?</a></p> <p><a class="btn-main" href="http://donate.libreoffice.org/fr/dl/win-x86/5.0.6/fr/LibreOffice_5.0.6_Win_x86.msi" title="Télécharger LibreOffice 5.0.6 pour Windows">Télécharger la version 5.0.6</a></p><p class="torrent thin">214 MB (<a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86.msi.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86.msi.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</p> <p>&nbsp;</p> <h2>Aide intégrée de LibreOffice en <strong>fran&ccedil;ais</strong></h2> <p><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.0&lang=pick\' title="Choisir une autre langue">vous souhaitez une autre langue ?</a><p> <p>Vous pouvez installer l\'aide si vous le souhaitez. Sinon une connexion internet est nécessaire pour accéder à l\'aide depuis LibreOffice. Si vous ne l\'avez pas déjà fait, vous devez d\'abord télécharger puis installer le package logiciel principal LibreOffice (ci-dessus).</p> <p><a class="btn-other" href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86_helppack_fr.msi" title="Télécharger l\'aide pour une utilisation hors ligne">Aide pour l\'utilisation hors ligne</a></p><p class="thin">7.1 MB (<a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86_helppack_fr.msi.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86_helppack_fr.msi.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</p> <h3>SDK et code source</h3> <h4>Télécharger le SDK</h4> <p><a href="http://donate.libreoffice.org/home/dl/SDK/5.0.6/1093/LibreOffice_5.0.6_Win_x86_sdk.msi">LibreOffice_5.0.6_Win_x86_sdk.msi</a><br/><span class="thin">28 MB (<a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86_sdk.msi.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/stable/5.0.6/win/x86/LibreOffice_5.0.6_Win_x86_sdk.msi.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</span></p> <h4>Télécharger le code source</h4><ul> <li><a href="http://donate.libreoffice.org/home/dl/src/5.0.6/all/libreoffice-5.0.6.3.tar.xz?idx=1">libreoffice-5.0.6.3.tar.xz</a><br/><span class="thin">160 MB (<a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-5.0.6.3.tar.xz.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-5.0.6.3.tar.xz.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</span></li> <li><a href="http://donate.libreoffice.org/home/dl/src/5.0.6/all/libreoffice-dictionaries-5.0.6.3.tar.xz?idx=2">libreoffice-dictionaries-5.0.6.3.tar.xz</a><br/><span class="thin">37 MB (<a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-dictionaries-5.0.6.3.tar.xz.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-dictionaries-5.0.6.3.tar.xz.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</span></li> <li><a href="http://donate.libreoffice.org/home/dl/src/5.0.6/all/libreoffice-help-5.0.6.3.tar.xz?idx=3">libreoffice-help-5.0.6.3.tar.xz</a><br/><span class="thin">1.8 MB (<a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-help-5.0.6.3.tar.xz.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-help-5.0.6.3.tar.xz.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</span></li> <li><a href="http://donate.libreoffice.org/home/dl/src/5.0.6/all/libreoffice-translations-5.0.6.3.tar.xz?idx=4">libreoffice-translations-5.0.6.3.tar.xz</a><br/><span class="thin">124 MB (<a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-translations-5.0.6.3.tar.xz.torrent" title="Télécharger en utilisant BitTorrent">Torrent</a>, <a href="http://download.documentfoundation.org/libreoffice/src/5.0.6/libreoffice-translations-5.0.6.3.tar.xz.mirrorlist" title="Sommes de contrôle et informations supplémentaires">Informations</a>)</span></li> </ul> <p id="change" class="lead_libre">Systèmes d\'exploitation</p> <p>LibreOffice 5.0 est disponible pour les systèmes d\'exploitation/architectures suivants :</p> <ul class="fa-ul"><li><a href=\'/download/libreoffice-stable/?type=deb-x86_64&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Linux x64 (deb)</a></li><li><a href=\'/download/libreoffice-stable/?type=rpm-x86_64&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Linux x64 (rpm)</a></li><li><a href=\'/download/libreoffice-stable/?type=deb-x86&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Linux x86 (deb)</a></li><li><a href=\'/download/libreoffice-stable/?type=rpm-x86&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Linux x86 (rpm)</a></li><li><a href=\'/download/libreoffice-stable/?type=mac-x86_64&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Mac OS X x86_64 (10.8 ou plus récent requis)</a></li><li><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Windows</a></li><li><a href=\'/download/libreoffice-stable/?type=win-x86_64&version=5.0&lang=fr\'><i class="fa-li fa fa-check-square"></i>Windows x86_64 (Vista ou plus récent requis)</a></li></ul> <p class="lead_libre">Versions disponibles</p> <p>LibreOffice est disponible dans les <strong>versions</strong> suivantes :<br/><ul class="fa-ul"><li><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.0.6&lang=fr\'><i class="fa-li fa fa-check-square-o"></i>5.0.6</a></li><li><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.1.2&lang=fr\'><i class="fa-li fa fa-check-square-o"></i>5.1.2</a></li><li><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.1.3&lang=fr\'><i class="fa-li fa fa-check-square-o"></i>5.1.3</a></li></ul></p> <p class="dark-gray">LibreOffice est disponible dans les <strong>pré-versions</strong> suivantes :<br/><ul class="fa-ul"><li><a href=\'/download/libreoffice-stable/?type=win-x86&version=5.2.0&lang=fr\' class=\'dark-gray\'><i class="fa-li fa fa-square-o dark-gray"></i>5.2.0</a></li></ul></p> </div> <div class="col-sm-4 margin-20"> <a class="btn2 btn-libre_office_green" href="get-help/system-requirements/"><i class="fa fa-wrench fa-2x"></i>&nbsp;System Requirements</a> <a class="btn2 btn-libre_office_green" href="community/get-involved/"><i class="fa fa-heart fa-2x"></i>&nbsp;Join The Project!</a> <a class="btn2 btn-libre_office_green" href="discover/libreoffice/"><i class="fa fa-plus fa-2x"></i>&nbsp;Do More with LibreOffice</a> <a class="btn2 btn-libre_office_green" href="discover/templates-and-extensions/"><i class="fa fa-smile-o fa-2x"></i>&nbsp;Good looking documents</a> </div> <div class="col-sm-4 margin-20"> <h3>Ressources utiles</h3> <p><a href="/get-help/install-howto/">Comment installer LibreOffice?</a><a href="http://www.libreoffice.org/get-help/documentation/"><br></a><a title="Vérifier les prérequis logiciels et matériels pour installer LibreOffice" href="/get-help/system-requirements/" target="_blank">Prérequis logiciels et matériels</a><a href="http://www.libreoffice.org/get-help/documentation/"><br></a><a href="http://extensions.libreoffice.org/">Extensions<br></a><a title="dépôt des anciennes versions de LibreOffice" href="http://download.documentfoundation.org/libreoffice/old/" target="_blank">Anciennes versions de LibreOffice</a><a href="http://www.libreoffice.org/get-help/documentation/"><br>Documentation</a><br><a href="http://www.libreoffice.org/download/license/">Licences LGPL et MPL</a><br><a href="https://help.libreoffice.org/Main_Page/fr">Aide en ligne</a></p> <aside> <nav class="secondary"> <h3> Télécharger </h3> <ul class="list-unstyled side-links"> <li> <a href="/download/libreoffice-stable/" class="current" title="LibreOffice Stable"> LibreOffice Stable </a> </li> <li> <a href="/download/libreoffice-fresh/" class="link" title="LibreOffice Évolution"> LibreOffice Évolution </a> </li> <li> <a href="/download/release-notes/" class="link" title="Notes de version"> Notes de version </a> </li> <li> <a href="/download/pre-releases/" class="link" title="Versions de développement"> Versions de développement </a> </li> <li> <a href="/download/portable-versions/" class="link" title="Versions portables &amp; Images DVD"> Versions portables &amp; Images DVD </a> </li> <li> <a href="/download/bug-calc-tri/" class="link" title="Bug_Calc_Tri"> Bug_Calc_Tri </a> </li> </ul> </nav> <!-- <p>LibreOffice Stable</p> <p>LibreOffice Évolution</p> <p>Notes de version</p> <p>Versions de développement</p> <p>Versions portables &amp; Images DVD</p> <p>Bug_Calc_Tri</p> --> </aside> </div> </article> </div> </section> <!-- Section Social--> <section id="social"> <div class="container"> <!-- Row --> <div class="row"> <div class="col-sm-12 text-center dark-gray"> <div class="margin-20"> <h3>Suivez-nous</h3> </div> <!--Social links--> <ul class="social-icons"> <li><a class="btn btn-libre_office_green" href="https://twitter.com/tdforg" target="_blank"><i class="fa fa-twitter fa-2x"></i>@tdforg</a></li> <li><a class="btn btn-libre_office_green" href="https://twitter.com/libreoffice" target="_blank"><i class="fa fa-twitter fa-2x"></i>@libreoffice</a></li> <li><a class="btn btn-libre_office_green" href="https://www.facebook.com/libreoffice.org" target="_blank"><i class="fa fa-facebook fa-2x"></i></a></li> <li><a class="btn btn-libre_office_green" href="https://plus.google.com/+libreoffice/" target="_blank"><i class="fa fa-google-plus fa-2x"></i></a></li> <li><a class="btn btn-libre_office_green" href="//www.youtube.com/channel/UCQAClQkZEm2rkWvU5bvCAXQ" target="_blank"><i class="fa fa-youtube fa-2x"></i></a></li> <li><a class="btn btn-libre_office_green" href="https://twitter.com/AskLibreOffice" target="_blank"><i class="fa fa-twitter fa-2x"></i>@AskLibreOffice</a> <li><a class="btn btn-libre_office_green" href="https://twitter.com/LibreOfficeBugs" target="_blank"><i class="fa fa-twitter fa-2x"></i>@LibreOfficeBugs</a></li> <li><a class="btn btn-libre_office_green" href="https://twitter.com/LOcommits" target="_blank"><i class="fa fa-twitter fa-2x"></i>@LOcommits</a></li> <li><a class="btn btn-libre_office_green" href="http://www.reddit.com/r/libreoffice" target="_blank"><img src="themes/libreofficenew/img/reddit.png" width="36" alt="Reddit" /></a></li> </ul> <!-- end Social links--> </div> </div> <!-- End Row --> </div> </section> <!-- end Section Social--> <!--Twitter Feed--> <section id="bottom"> <div class="container"> <!-- Row --> <div class="row"> <div class="col-sm-12 text-center"> <h3>Derniers Tweets</h3> </div> </div> <div class="row"> <div class="col-sm-6 text-center"> <h5>@libreoffice</h5> </div> <div class="col-sm-6 text-center"> <h5>@tdforg</h5> </div> </div> <div class="row"> <div class="col-sm-6 text-center"> <div class="latest-twitter"> <a class="twitter-timeline" href="https://twitter.com/libreoffice" height="250" data-link-color="#00A500" data-chrome="transparent" data-border-color="#444" data-widget-id="423827266318000128">Tweets by @libreoffice</a> </div> </div> <div class="col-sm-6 text-center"> <div class="latest-twitter"> <a class="twitter-timeline" href="https://twitter.com/tdforg" height="250" data-link-color="#00A500" data-chrome="transparent" data-border-color="#444" data-widget-id="423829327612887040">Tweets by @tdforg</a> </div> </div> </div> </div> </section> <!--Footer --> <section id="footer"> <div class="container"> <div class="row"> <div class="col-sm-12 text-center"> <p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank">Creative Commons Attribution-Share Alike 3.0 License</a>. This does not include the source code of LibreOffice, which is licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.</p> </div> </div> </div> </section> <script type="text/javascript" src="/themes/libreofficenew/js/jquery-1.10.1.min.js?m=1388425220"></script><script type="text/javascript" src="/themes/libreofficenew/js/bootstrap.min.js?m=1390226302"></script><script type="text/javascript" src="/themes/libreofficenew/js/jquery.flexslider.js?m=1389807992"></script><script type="text/javascript" src="/themes/libreofficenew/js/jquery.tablesorter.min.js?m=1400150227"></script><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <!-- Start Piwik Code --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.documentfoundation.org/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "5"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script><!-- let\'s see how many visitors have js disabled --> <noscript><img src="https://piwik.documentfoundation.org/piwik.php?idsite=5&amp;rec=1&action_name=nojs" style="border:0" alt="" /></noscript> <!-- End Piwik Code --> <script type="text/javascript"> !function ($) { $(function(){ $(\'#header\').carousel() }) }(window.jQuery) $(window).load(function() { $(\'.flexslider\').flexslider({ animation: "slide" }); }); $(document).ready(function() { $(\'.tablesorter\').each(function() { $(this).tablesorter(); }); } ); jQuery(\'#gotoplainhome\').click(function(){ jQuery("#jumppage, #blurme").removeClass("enabled"); return false;//Some code }); </script> </body> </html> '; preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0); // Print the entire match result var_dump($matches);

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php