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
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
  • Match everything enclosed
    (?:...)
  • Capture everything enclosed
    (...)
  • 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

/
/
gm

Test String

Code Generator

Generated Code

# coding=utf8 # the above tag defines encoding for this document and is for Python 2.x compatibility import re regex = r"(?<=\"ctl00_ContentPlaceHolder1_lblNombre\">)[0-9a-zA-Z\s+\/,.()]+" test_str = "2022-09-14 17:58:41: <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head id=\"ctl00_MasterHead\"><title> Ficha Productos Registrados</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><link href=\"css/estilos_nuevos.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\"css/estilo_general.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\"css/menu_style.css\" rel=\"stylesheet\" type=\"text/css\" /> <script type=\"text/javascript\"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12175838-1']); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></head><body> <div id=\"container\"> <div id=\"cabecera\"> </div> <div id=\"centro\"> <form name=\"aspnetForm\" method=\"post\" action=\"./Ficha.aspx?RegistroISP=F-14180%2f19\" id=\"aspnetForm\"><input type=\"hidden\" name=\"ctl00_ContentPlaceHolder1_ScriptManager1_HiddenField\" id=\"ctl00_ContentPlaceHolder1_ScriptManager1_HiddenField\" value=\"\" /><input type=\"hidden\" name=\"__VIEWSTATE\" id=\"__VIEWSTATE\" value=\"/wEPDwUJOTgyNjY2MDg3D2QWAmYPZBYCAgMPZBYCAgEPZBYGAgMPZBYCAgEPPCsABQEADxYEHgxBbGxvd1NsaWRpbmdoHgtDb2xsYXBzYWJsZWhkFh5mDw8WAh4EVGV4dAUKRi0xNDE4MC8xOWRkAgEPDxYCHwIFL0RJQUdMSVRBQiBQTFVTIDI1MC8xLDI1IENPTVBSSU1JRE9TIFJFQ1VCSUVSVE9TZGQCAg8PFgIfAmVkZAIDDw8WAh8CZWRkAgQPDxYCHwIFG0xBQk9SQVRPUklPUyBSRUNBTENJTkUgUy5BLmRkAgUPDxYCHwIFB1ZpZ2VudGVkZAIGDw8WAh8CBQQ4MzQwZGQCBw8PFgIfAgUKMjgvMDkvMjAwNGRkAggPDxYCHwIFCjI4LzA5LzIwMTlkZAIJDw8WAh8CBQoyOC8wOS8yMDI0ZGQCCg8PFgIfAgUVRmFicmljYWNpw7NuIE5hY2lvbmFsZGQCCw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AIBZAUkY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRjcEZvcm11bGFzDxQrAAJkaGQIByBrvxHHUOf9oTeqUOO5cwrjbDYH90ZqgEkumg2KxA==\" /><script type=\"text/javascript\">//<![CDATA[var __cultureInfo = {\"name\":\"es-ES\",\"numberFormat\":{\"CurrencyDecimalDigits\":2,\"CurrencyDecimalSeparator\":\",\",\"IsReadOnly\":true,\"CurrencyGroupSizes\":[3],\"NumberGroupSizes\":[3],\"PercentGroupSizes\":[3],\"CurrencyGroupSeparator\":\".\",\"CurrencySymbol\":\"€\",\"NaNSymbol\":\"NaN\",\"CurrencyNegativePattern\":8,\"NumberNegativePattern\":1,\"PercentPositivePattern\":0,\"PercentNegativePattern\":0,\"NegativeInfinitySymbol\":\"-∞\",\"NegativeSign\":\"-\",\"NumberDecimalDigits\":2,\"NumberDecimalSeparator\":\",\",\"NumberGroupSeparator\":\".\",\"CurrencyPositivePattern\":3,\"PositiveInfinitySymbol\":\"∞\",\"PositiveSign\":\"+\",\"PercentDecimalDigits\":2,\"PercentDecimalSeparator\":\",\",\"PercentGroupSeparator\":\".\",\"PercentSymbol\":\"%\",\"PerMilleSymbol\":\"‰\",\"NativeDigits\":[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],\"DigitSubstitution\":1},\"dateTimeFormat\":{\"AMDesignator\":\"\",\"Calendar\":{\"MinSupportedDateTime\":\"\\/Date(-62135586000000)\\/\",\"MaxSupportedDateTime\":\"\\/Date(253402300799999)\\/\",\"AlgorithmType\":1,\"CalendarType\":1,\"Eras\":[1],\"TwoDigitYearMax\":2029,\"IsReadOnly\":true},\"DateSeparator\":\"/\",\"FirstDayOfWeek\":1,\"CalendarWeekRule\":2,\"FullDateTimePattern\":\"dddd, d\\u0027 de \\u0027MMMM\\u0027 de \\u0027yyyy H:mm:ss\",\"LongDatePattern\":\"dddd, d\\u0027 de \\u0027MMMM\\u0027 de \\u0027yyyy\",\"LongTimePattern\":\"H:mm:ss\",\"MonthDayPattern\":\"d \\u0027de\\u0027 MMMM\",\"PMDesignator\":\"\",\"RFC1123Pattern\":\"ddd, dd MMM yyyy HH\\u0027:\\u0027mm\\u0027:\\u0027ss \\u0027GMT\\u0027\",\"ShortDatePattern\":\"dd/MM/yyyy\",\"ShortTimePattern\":\"H:mm\",\"SortableDateTimePattern\":\"yyyy\\u0027-\\u0027MM\\u0027-\\u0027dd\\u0027T\\u0027HH\\u0027:\\u0027mm\\u0027:\\u0027ss\",\"TimeSeparator\":\":\",\"UniversalSortableDateTimePattern\":\"yyyy\\u0027-\\u0027MM\\u0027-\\u0027dd HH\\u0027:\\u0027mm\\u0027:\\u0027ss\\u0027Z\\u0027\",\"YearMonthPattern\":\"MMMM\\u0027 de \\u0027yyyy\",\"AbbreviatedDayNames\":[\"do.\",\"lu.\",\"ma.\",\"mi.\",\"ju.\",\"vi.\",\"sá.\"],\"ShortestDayNames\":[\"D\",\"L\",\"M\",\"X\",\"J\",\"V\",\"S\"],\"DayNames\":[\"domingo\",\"lunes\",\"martes\",\"miércoles\",\"jueves\",\"viernes\",\"sábado\"],\"AbbreviatedMonthNames\":[\"ene.\",\"feb.\",\"mar.\",\"abr.\",\"may.\",\"jun.\",\"jul.\",\"ago.\",\"sep.\",\"oct.\",\"nov.\",\"dic.\",\"\"],\"MonthNames\":[\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\",\"\"],\"IsReadOnly\":true,\"NativeCalendarName\":\"calendario gregoriano\",\"AbbreviatedMonthGenitiveNames\":[\"ene.\",\"feb.\",\"mar.\",\"abr.\",\"may.\",\"jun.\",\"jul.\",\"ago.\",\"sep.\",\"oct.\",\"nov.\",\"dic.\",\"\"],\"MonthGenitiveNames\":[\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\",\"\"]},\"eras\":[1,\"d. C.\",null,0]};//]]></script><script src=\"/ScriptResource.axd?d=rdmsDz_OySyV6eQQdLKgTWtzLKcIMYPE5oKAzKQNoCcgpkKtmKs_bhsJfhihb2zIVf8wHqCaxNgaMjM1WTYWNPYkkm8YETufVbbr3q7Ql1pHiojVao1x5_-Kl7gJCUfEOooZDdTPYMeiITBcGUAy1Q2&amp;t=397b6a7\" type=\"text/javascript\"></script><script type=\"text/javascript\">//<![CDATA[if (typeof(Sys) === 'undefined') throw new Error('Error al cargar el marco de trabajo de cliente ASP.NET Ajax.');//]]></script><input type=\"hidden\" name=\"__VIEWSTATEGENERATOR\" id=\"__VIEWSTATEGENERATOR\" value=\"39B9EE79\" /><input type=\"hidden\" name=\"__EVENTVALIDATION\" id=\"__EVENTVALIDATION\" value=\"/wEdAALDHgVonHSrJnteviyM2U4ZjDWi5xD0LA9v3qQOeBPhC3CzATDfu98VX/H8isT+3yf7adhszUXa5SvtnbNROxph\" /> <div> <script type=\"text/javascript\"> function volver(valor) { history.go(valor); return false; } </script> <div class=\"headingCenter\"> FICHA PRODUCTO </div> <br /> <div class=\"divContenedor\" align=\"center\"> <div id=\"ctl00_ContentPlaceHolder1_pnlProducto\" UpdateMode=\"Conditional\"> <div align=\"left\"> <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td class id=\"ctl00_ContentPlaceHolder1_cpProducto_ContainerLeft\" align=\"left\" valign=\"Middle\">Descripción Producto</td> </tr><tr> <td id=\"ctl00_ContentPlaceHolder1_cpProducto_ContentRow\" align=\"left\"><div id=\"ctl00_ContentPlaceHolder1_cpProducto\" class=\"demoContent\"> <table> <tr> <td class=\"texto2\" style=\"width: 190px; height: 22px\"><strong>Registro</strong></td> <td class=\"texto2\" style=\"width: 10px; height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"width: 620px; height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblRegistro\">F-14180/19</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Nombre</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblNombre\">DIAGLITAB PLUS 250/1,25 COMPRIMIDOS RECUBIERTOS</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Referencia de Tramite</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblRefTramite\"></span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Equivalencia Terapéutica o Biosimilar</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblEquivalencia\"></span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Titular</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblEmpresa\">LABORATORIOS RECALCINE S.A.</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Estado del Registro </strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblEstado\">Vigente</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Resolución Inscríbase</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblResInscribase\">8340</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Fecha Inscríbase</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblFchInscribase\">28/09/2004</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Ultima Renovación</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblFchResolucion\">28/09/2019</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Fecha Próxima renovación</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblProxRenovacion\">28/09/2024</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Régimen</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblRegimen\">Fabricación Nacional</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Vía Administración</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblViaAdministracion\">ORAL</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Condición de Venta</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblCondicionVenta\">Receta Médica</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Expende tipo establecimiento</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblExpende\">Establecimiento Tipo A Y Asistencial</span> </td> </tr> <tr> <td class=\"texto2\" style=\"height: 22px\"> <strong>Indicación</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <strong>:</strong> </td> <td class=\"texto2\" style=\"height: 22px\"> <span id=\"ctl00_ContentPlaceHolder1_lblIndicacion\">\"indicado como terapia de segunda linea cuando la dieta, el ejercicio y el tratamiento inicial con una sulfonilurea o metformina no permite alcanzar un control glicemico adecuado en pacientes con diabetes tipo 2.\"</span> </td> </tr> </table> </div></td> </tr> </table> </div> </div> <br /> <div id=\"ctl00_ContentPlaceHolder1_pnlAntecedentes\" UpdateMode=\"Conditional\"> <div align=\"left\"> <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td class id=\"ctl00_ContentPlaceHolder1_cpEnvases_ContainerLeft\" align=\"left\" valign=\"Middle\">Envases</td> </tr><tr> <td id=\"ctl00_ContentPlaceHolder1_cpEnvases_ContentRow\" align=\"left\"><div id=\"ctl00_ContentPlaceHolder1_cpEnvases\" class=\"demoContent\"> <div> <table cellspacing=\"0\" cellpadding=\"6\" border=\"0\" id=\"ctl00_ContentPlaceHolder1_gvEnvases\" bgcolor=\"#FFFF66\" width=\"100%\"> <tr> <th class=\"titrow\" scope=\"col\">Tipo Envase</th><th class=\"titrow\" scope=\"col\">Descripción Envase</th><th class=\"titrow\" scope=\"col\">Período Eficacia</th><th class=\"titrow\" scope=\"col\">Condición Almacenamiento</th><th class=\"titrow\" scope=\"col\">Contenido</th><th class=\"titrow\" scope=\"col\">Unidad Medida</th> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblTipoEnvase\">Envase Clínico</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblDscEnvase\">BLISTER PACK COMPUESTO POR LAMINA DE PVC TERMOFORMADO Y SELLADO CON FILM DE ALUMINIO IMPRESO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblPerEficacia\">24M</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblConAlmacenamiento\">Almacenado A No Más De 25ºC</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblContenido\">100-200-500-1000</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl02_lblUniMedida\">COMPRIMIDOS</span> </td> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblTipoEnvase\">Muestra Médica</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblDscEnvase\">BLISTER PACK COMPUESTO POR LAMINA DE PVC TERMOFORMADO Y SELLADO CON FILM DE ALUMINIO IMPRESO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblPerEficacia\">24M</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblConAlmacenamiento\">Almacenado A No Más De 25ºC</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblContenido\">1-2-3-4-5-10-20-30</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl03_lblUniMedida\">COMPRIMIDOS</span> </td> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblTipoEnvase\">Venta Público</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblDscEnvase\">BLISTER PACK COMPUESTO POR LAMINA DE PVC TERMOFORMADO Y SELLADO CON FILM DE ALUMINIO IMPRESO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblPerEficacia\">24M</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblConAlmacenamiento\">Almacenado A No Más De 25ºC</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblContenido\">10-20-30-40-50-60-90-100</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvEnvases_ctl04_lblUniMedida\">COMPRIMIDOS</span> </td> </tr> </table> </div> </div></td> </tr> </table> <br> <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td class id=\"ctl00_ContentPlaceHolder1_cpFuncionEmpresas_ContainerLeft\" align=\"left\" valign=\"Middle\">Función Empresa</td> </tr><tr> <td id=\"ctl00_ContentPlaceHolder1_cpFuncionEmpresas_ContentRow\" align=\"left\"><div id=\"ctl00_ContentPlaceHolder1_cpFuncionEmpresas\" class=\"demoContent\"> <div> <table cellspacing=\"0\" cellpadding=\"6\" border=\"0\" id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas\" bgcolor=\"#FFFF66\" width=\"100%\"> <tr> <th class=\"titrow\" scope=\"col\">Función Empresa</th><th class=\"titrow\" scope=\"col\">Razón Social</th><th class=\"titrow\" scope=\"col\">País</th> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl02_lblfnEmpresa\">FABRICACIÓN NACIONAL TERMINADO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl02_lblRazonSocial\">LABORATORIOS LAFI LTDA.</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl02_lblpais\">CHILE</span> </td> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl03_lblfnEmpresa\">FABRICACIÓN NACIONAL TERMINADO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl03_lblRazonSocial\">LABORATORIOS RECALCINE S.A.</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl03_lblpais\">CHILE</span> </td> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl04_lblfnEmpresa\">DISTRIBUIDOR</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl04_lblRazonSocial\">LABORATORIOS RECALCINE S.A.</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFuncionEmpresas_ctl04_lblpais\">CHILE</span> </td> </tr> </table> </div> </div></td> </tr> </table> <br> <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <tr> <td class id=\"ctl00_ContentPlaceHolder1_cpFormulas_ContainerLeft\" align=\"left\" valign=\"Middle\">Fórmula (sólo Principios Activos)</td> </tr><tr> <td id=\"ctl00_ContentPlaceHolder1_cpFormulas_ContentRow\" align=\"left\"><div id=\"ctl00_ContentPlaceHolder1_cpFormulas\" class=\"demoContent\"> <div> <table cellspacing=\"0\" cellpadding=\"6\" border=\"0\" id=\"ctl00_ContentPlaceHolder1_gvFormulas\" bgcolor=\"#FFFF66\" width=\"100%\"> <tr> <th class=\"titrow\" scope=\"col\">Nombre PA</th><th class=\"titrow\" scope=\"col\">Concentración</th><th class=\"titrow\" scope=\"col\">Unidad Medida</th><th class=\"titrow\" scope=\"col\">Parte</th> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl02_lblNombreElemento\">GLIBENCLAMIDA</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl02_lblConcentracion\">1,25</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl02_lblUnidadMedida\">mg</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl02_lblFc_Componente\"></span> </td> </tr><tr> <td class=\"tdsimple\" width=\"70\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl03_lblNombreElemento\">METFORMINA CLORHIDRATO</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl03_lblConcentracion\">250</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl03_lblUnidadMedida\">mg</span> </td><td class=\"tdsimple\" width=\"100\"> <span id=\"ctl00_ContentPlaceHolder1_gvFormulas_ctl03_lblFc_Componente\"></span> </td> </tr> </table> </div> </div></td> </tr> </table> <br> </div> </div> <br /> <div id=\"ctl00_ContentPlaceHolder1_pnlVolver\" class=\"headingLeft\" UpdateMode=\"Conditional\"> <input type=\"image\" name=\"ctl00$ContentPlaceHolder1$btnVolver\" id=\"ctl00_ContentPlaceHolder1_btnVolver\" src=\"img/boton_volver.jpg\" onclick=\"javascript:return volver(-1);\" border=\"0\" /> </div> </div> </div> <script type=\"text/javascript\">//<![CDATA[(function() {var fn = function() {$get(\"ctl00_ContentPlaceHolder1_ScriptManager1_HiddenField\").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();//]]></script></form> </div> </div> <div id=\"pie\"> &nbsp;&nbsp; <p> <span style=\"font-size: small;\"><strong>&nbsp; Instituto de Salud Pública de Chile</strong></span><br /> <br /> </p> <div class=\"columnaspie borderBlack\" style=\"padding-left: 10px;\"> Av. Marathon 1000<br /> Ñuñoa, Santiago<br /> Casilla 48 Correo 21<br /> Código Postal 7780050<b><br /> </b> </div> <div class=\"columnaspie borderBlack\"> <b>Mesa Central<br /> </b>(56-2) 5755 101<b><br /> Informaciones<br /> </b>(56-2) 5755 201<br /> </div> <div class=\"columnaspie2 borderBlack2\"> <b>Contacto con OIRS<br /> </b><a href=\"http://www.ispch.cl/oirs/index.htm\" target=\"_blank\" class=\"linkpie\">Oficina de Informaciones, Reclamos y Sugerencias</a><b><br /> </b> </div> <br /> <br /> <br /> <br /> </div></body></html>" matches = re.finditer(regex, test_str, re.MULTILINE) for matchNum, match in enumerate(matches, start=1): print ("Match {matchNum} was found at {start}-{end}: {match}".format(matchNum = matchNum, start = match.start(), end = match.end(), match = match.group())) for groupNum in range(0, len(match.groups())): groupNum = groupNum + 1 print ("Group {groupNum} found at {start}-{end}: {group}".format(groupNum = groupNum, start = match.start(groupNum), end = match.end(groupNum), group = match.group(groupNum))) # Note: for Python 2.7 compatibility, use ur"" to prefix the regex and u"" to prefix the test string and substitution.

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 Python, please visit: https://docs.python.org/3/library/re.html