Regular Expressions 101

Save & Share

  • Save new Regex
    ctrl+s
  • Update Regex
    ctrl+⇧+s
  • Add to Community Library

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

/
/
gi

Test String

Code Generator

Generated Code

import Foundation let pattern = #"\b(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?\b"# let regex = try! NSRegularExpression(pattern: pattern, options: .caseInsensitive) let testString = #""" http://balancing-blessings.com/BookLinks.php http://cvm.org.uk/links http://deeptruths.com/links.html http://evangelicalarminians.org/links-and-books/ http://gracebibleny.org/bible_study_resources http://greybullcma.org/Links.html http://howardmiami.org/links.htm http://imofinc.org/internet-links/ http://jesus.scilla.org.uk/p/links.html http://lifebridge.ca/resources/links/ http://marttimuukkonen.pp.fi/Christianlinks.htm http://padstowcong.com/contact-links/ http://pottershouseseminarybiblecollege.com/student-resources http://sacred-assembly.org/links1.html http://sage.nowsprouting.com/waxahachiebiblechurch/resources/bible-reading/ http://sandramiller.org/BookLinks.php http://tarotcanada.org/index-MoreLinks.html http://theeffect.org/resources/links.html http://tylandbaptist.com/resources.htm http://untbsm.com/resources/discipleship/ http://valrosa.com/Links/links.htm http://www.adlibchristianarts.org/links.shtml http://www.balancingblessings.com/BookLinks.php http://www.bcbsr.com/clinks3.html http://www.bibleversebabies.com/links.htm http://www.bornagainautobody.com/ministrylinks/id32.html http://www.bridgtonumc.com/links.html http://www.cfcpeople.org/links.html http://www.cmm.org.uk/people/links.php http://www.cpofohio.org/learn-resources.html http://www.dukest.com/links.html http://www.fcachurch.us/resources.html http://www.firstchristianassembly.org/resources.html http://www.footprints4autism.org/resources.html http://www.gcc4him.org/resources.html http://www.gocb.org/braille-links.asp http://www.gracehollister.org/media/helpful-links/ http://www.hislambsonline.org/other-resources-links.php http://www.hswc.us/resources.html http://www.kingswaychurch.ca/resources/ http://www.lcctoday.org/lakeside-links-december-31st/ http://www.mleministries.org/resources.html http://www.my-crossroads.com/about-us/resources/ http://www.olqh.com/links.html http://www.onesaint.org/links.html http://www.ovieezimeruwe.com/?Dutas&atpp&resources-for-dutas&Id=722 http://www.peacehealth.org/st-joseph/services/pastoral-and-spiritual-care/parish-nurse-program/Pages/links.aspx http://www.pghpresbytery.org/disciplemaking/resources.htm http://www.pinedale.org/resources http://www.pinelanechurchofchrist.org/Other_Links.html http://www.preachtheword.com/links.html http://www.rcetc.com/resources/links.php http://www.roea.org/orthodoxresources.html http://www.srcf.org.uk/links.htm http://www.stmartinswalsall.co.uk/2013/12/03/bible-reading-resources/ http://www.stpaulneenah.org/Bible%20Resources.htm http://www.thesinglesnetwork.org/bible-study-resources.html http://www.tribulationinstitute.com/links.htm http://www.understanding-ministries.com///a/27637/more-links http://www.westminsteropc.com/more_links.htm http://www.whizz-products.co.uk/links.html https://csehy.org/AboutUs/Resources.html http://3dand4d.com/pregnancy-resources/ http://64.251.27.164/usefullinks.htm http://67.59.159.123/health/resources.htm http://75.98.165.5/links/cancer http://amarechhailecancerfoundation.org/links http://amissionoflove.com/links/ http://aohna.org/resources-links/ohn-resources http://australiandietitian.com/links http://banffmedical.com/links-of-interest/ http://be-safe.co.za/links/ http://beckydoulaservices.com/links.html http://billaron.com/external-links.html http://birth-in-balance.weebly.com/local-resources.html http://birthphotographers.com/resources-2/resources/ http://braelyn.stevryn.com/links http://buffalohealthyliving.com/resources/ http://campsimcha.org.uk/useful_links/ http://cancerchoices.org.uk/useful-links/ http://cancerfairygodmother.com/wig-resources-online/ http://cancersurvivorsirc.com/cslinks.html http://canpku.org/pku-links http://cecfl.org/Parents/Resources.aspx http://centraltexascoalition.com/help-for-women-familiespregnancy-resources/ http://chd.org/adult-services/community-based-programs/cancer-house-hope/helpful-linksresources/ http://chicagohealthonline.com/resources/ http://childrenbattlingcancer.com/Resources.aspx http://cholangiocarcinoma.org/for-patients/resources/ http://ci.troy.mi.us/Resources/DisabilitiesResources http://cibd-ca.org/helpful-links/ http://coloradodoulas.com/parent-links http://community.healthywomen.org/page/resources http://copiaguelibrary.org/public/links_medical.cfm http://corvettesconquercancer.com/links.htm http://cspry.co.uk/links/oncology.html http://cumberlandpediatric.org/resources http://desertcanceraz.org/resources/ http://dhhs.ne.gov/publichealth/Pages/hew_hpe_nebraskacares_resources.aspx http://diabetes.ufl.edu/my-diabetes/diabetes-resources/ http://digpregnancy.com/resources/ http://disabledinaction.org/resources.html http://doctorpadma.com/useful-links/ http://dothanhighschoolsadd.weebly.com/links.html http://ekubs.org.uk/breast-awareness/links.html http://evenbetterhealth.com/health-links.php http://familyvoicesohio.org/National_Resources.html http://festive5k.com/about/resources-childrens-health http://first5sandiego.org/helpful-links/ http://fitwise.com.au/patient-resources/links-page http://flintobgyn.com/patient-resources/links/ http://frontrangeobgyn.com/resources/links/ http://gbcancersupportcentre.ca/resources http://getready4baby.com/links.html http://giveus5.org/resources-2/ http://greenstorkmn.com/childbirth-education-resources-mankato/ http://haematologywatch.net/links.php http://hcma.net/Helpful-Links.html http://heartlandclinicofchiropractic.weebly.com/resources.html http://hhshcs.weebly.com/links.html http://host15.genetics.emory.edu/links/genetics-web-sites-new-born-screening http://ia-storycounty.civicplus.com/quicklinks.aspx http://ichpcolorado.com/services/Links_to_National_Health_Care_Resources.htm http://ideastations.org/cancer-resources-type http://indydoulaassociates.com/index.php/resources/preferred-providers http://infantmentalhealth.co.za/links http://inlandempire.vc.ons.org/resources http://int.sascentre.com/resources/1323 http://internationalparentingassociation.org/Infra/links.html http://ivy.deliverybizpro.com/p-23-useful-links.html http://jacksonvilleforlife.org/links http://jessicaleefoundation.org/Important_Links.html http://jolietlibrary.org/resources/databases/health http://kcc.bam.nonwebdev.com/childhood-cancer/resources.html http://kendraskisses.com/links.html http://kidneykids.org.nz/kidney-info/renal-links/ http://lagenetica.info/en/lagenetica-info-3/links/ http://leavenfortheloaf.com/links/crisis-pregnancy-resources-in-nh/ http://lifechanges4women.com/resources/cancer-resources/ http://longislandpsychotherapy.net/resources/ http://lorigodin.com/helpful-links/ http://losangelesbirthpartners.com/links.html http://lovingtouch.com/infant-massage-resource-links http://lucyslovebus.org/additional-cancer-resources http://mamcf.org/resources http://marcycasselman.com/resources/ http://massagenirvana.com/links/ http://massawhonn.org/site/links http://melanomaknowmore.com/resources/ http://mercycancernetwork.com/cancerresources http://midwifecottage.com/pregnancy-and-birth-resources/ http://misadvmom.com/links/ http://mldfoundation.org/links-medical.html http://momchd.com/parenting-links-and-resources/ http://mothermassage.net/resources.php http://movingbeyondcancer.com.au/useful-links?task=weblink.go&id=14 http://msoncologysociety.org/links-resources.php http://multiplebirthscanada.org/index.php/parents/web-links/ http://mychildscancer.org/useful-links-assosiations/cord-blood-banking http://mychoicepregnancycenter.com/resources/ http://mydoulaheart.com/resources-baton-rouge/ http://nationalcmlsociety.org/resources/cml-and-leukemia-links http://ncds.org/resources/helpful-information.html http://njpha.org/public-health-links/ http://northstaffsmoles2.btck.co.uk/Links http://northstateparent.com/familyresources/special-needs/special-needs-health%C2%A0cancer/ http://orgs.salisbury.edu/sna/resources.html http://phe-ethiopia.org/links/index.html http://pilothealthadvocates.com/resources/ http://pregnantwithcancer.org/links_filtered.php?LinkCatID=25 http://preserve-1.org/resources http://pumayoga.net/pre-postnatal-yoga/prenatal-resources http://rarediseaseunited.org/resources/topic-specific-organizations http://remissionman.com/linkspage/ http://right2life.ca/education/stem-cells-resources/ http://rightpathbirthclass.com/Valuable_resources.html http://s4om.org/helpful-links http://saint-leo.org/WorksofMercy/ParishNurseMinistry/HealthcareInformationLinks.aspx http://sasgcc.org/links/cancer http://schoolwellbeing.co.uk/pages/web-links--3 http://sdgdoula.weebly.com/helpful-resources.html http://segolilymidwife.com/resources/ http://selectclinicaltrials.com/education/resources/ http://simonsecret.org/links.html http://smcma.org/patient-resources/other-resources http://spponline.org/research/links.asp http://stompthemonster.org/links/ http://summitexpressmed.com/useful-links/ http://sumo.dev.brickwire.com/links/ http://sweetsuccessexpress.com/RESOURCES.html http://swimmingaftersurgery.org.uk/useful-links/ http://themadeeproject.com/mp/Links.html http://tipslimited.co.uk/index.php?option=com_weblinks&view=weblink&id=272&Itemid=89 http://tkeckle.net/links/medical.html http://trilliummidwiferyservices.com/faq/resources/ http://troymi.gov/Resources/DisabilitiesResources http://troymi.net/Resources/DisabilitiesResources http://tworiversbirth.com/resources http://vhost47.hosted-sites.deakin.edu.au/resources/related-sites/health-related.php http://villamajella.org/unplanned-pregnancy---pregnancy-resources http://viscardi.pub30.convio.net/resources/helpful-information.html http://visualizingbirth.org/resources http://w6831083.shared.hosting.zen.co.uk/links/oncology.html http://warrencountyhealth.org/resources-directory.php http://waterbirth.me/faq-and-resources.html http://wellnesswithin.org/resources-2/cancer-wellness/ http://womanhealthgate.com/links/ http://wsoaonline.org/resources/ http://www.14ushop.com/flyin-blind/info-links.html http://www.aapca3.org/useful-organization-links/ http://www.abilitiesonline.org/resources/helpful-information.html http://www.aboutcervicalcancer.com/Cancer_Support_Links.html http://www.aboutface.ca/external-links/ http://www.abpb.org/ABPB/Links/hematoN.aspx http://www.absolutelypointless.net/links/health.html http://www.accesstomedicine.co.uk/the-campaign/useful-resources http://www.acqol.com.au/resources/related-sites/health-related.php http://www.adamspediatrics.com/resources.html http://www.alabamalifescience.com/patient/resources.htm http://www.alaskalifescience.com/patient/resources.htm http://www.albertalifescience.com/patient/resources.htm http://www.alkalizeforhealth.net/usefullinks.htm http://www.amarisministries.com/adoptions-resources.html http://www.americantransplantfoundation.org/about-transplant/resources-and-links/other-organizations/ http://www.anybabycan.org/programs-services/community-resources http://www.arearlylearning.org/index.php/parents/parent-links/12 http://www.arizona-malpractice.com/resources/ http://www.arizonalifescience.com/patient/resources.htm http://www.arkansaslifescience.com/patient/resources.htm http://www.ashi-hla.org/links/ http://www.audraincountyhealth.org/links.html http://www.austinprenatalyoga.com/resources http://www.avalonschool.org/students/resources/health-resources/ http://www.awakenyourhealth.com.au/resources/ http://www.babaindaba.co.za/links.htm http://www.babaindaba.com/links.htm http://www.babyblindness.com/resources-for-pregnant-women http://www.babydolly.co.uk/links.htm http://www.bccrcdc.org/links-of-interest/ http://www.beating-cancer-gently.com/links.html http://www.bechildcanceraware.org/child-cancer-info/useful-links/ http://www.behaviouralsciencesunit.org/useful-links.html http://www.bellybliss.org/Resources.html http://www.below-seven.com/2014/06/14/pregnancy-type-1-diabetes-resources/ http://www.berkshirehealthcare.nhs.uk/libraries/links/links.htm http://www.bestoptions.org/Links http://www.beststartbirthcenter.com/resources/cord-blood-banking/ http://www.beyondtheveil.net/cglinks.html http://www.birthmattersnyc.com/resources.html http://www.birthreadyspokane.com/resources.html http://www.birthwiseinbirmingham.com/pregnancy-links.html http://www.blissfulself.com/links.htm http://www.blissfultransition.com/resources.html http://www.bloodcenters.org/blood-donation/useful-links/ http://www.blueheronbirthservices.com/facts--resources.html http://www.brandywinefoundation.org/about/resources-childrens-health http://www.brindabellapractice.com.au/helpful-links http://www.britishcolumbialifescience.com/patient/resources.htm http://www.brustkrebsverlauf.info/links_e.htm http://www.californialifescience.com/patient/resources.htm http://www.cambridgemedchemconsulting.com/resources/miscellaneous/grant_funds.html http://www.canadaadopts.com/adopting-in-canada/adoption-links/ http://www.cancercardxchange.org/p/resources.html http://www.cancerfundforchildren.com/how-we-help/useful-links/ http://www.cancergifts.com/resources http://www.cancersupport4u.org/online-resources.html http://www.cancersupportvi.com/cancer_support_resources.html http://www.caregiverpartnership.com/resources/category/chronic-conditions/11/ http://www.carewellcommunity.org/links.cmc http://www.cccsd.org/webpages/cpynn/links.cfm http://www.celestialmomsdoulas.com/resources.html http://www.cellbiolabs.com/links-resources http://www.centerwatch.com/health-resources/general/resource-area.aspx?AreaID=6 http://www.centralvalleymedicalcenter.com/resources/helpful-links http://www.cephaloncares.com/OtherResources.aspx http://www.chemobrainfog.com/p/information-links.html http://www.cheshirechiropractic.com/health-links/ http://www.choa.org/Childrens-Hospital-Services/Cancer-and-Blood-Disorders/Programs/Blood-and-Marrow-Transplantation/BMT-Resources/Helpful-Websites http://www.choicespregnancy.org/resources http://www.citykinder.com/for-parents-to-be/links-we-like/ http://www.clarkrtl.org/newsletters-and-resources/ http://www.clfoundation.org/resources/additional-resources http://www.coastalpharmacyinc.com/helpful-links-36 http://www.cocai.org/index.php/131-camper-resources/family-support-groups/473-family-support-groups http://www.codaalliance.org/links.html http://www.coloradolifescience.com/patient/resources.htm http://www.columbiaareamidwives.com/resources.html http://www.communitiesforkids.ca/parenting-information/parenting-links-2/ http://www.concordmasons.org/useful-links http://www.connecticutlifescience.com/patient/resources.htm http://www.cookforyourlife.org/resources http://www.cranial.org.za/links/ http://www.cristianriverafoundation.org/links.html http://www.cyagen.com/us/en/resources/useful-links.html http://www.dakinidoula.com/educational-resources.html http://www.dancersagainstcancer.org/links.html http://www.delawarefamilytofamily.org/resources/public-health http://www.delawarelifescience.com/patient/resources.htm http://www.dermoscopy-ids.org/index.php/links http://www.designedtobirth.com/links-books-and-resources.html http://www.discoveryarts.org/childhood-cancer-resources.html http://www.dnaandu.org/Site/RESOURCES.html http://www.doulaplus.com/resources.html http://www.dragonflyangelsociety.com/websites-and-resources.html http://www.earlybuds.org.nz/links-to-other-support.html http://www.easierparenting.com.au/resources/useful-links/ http://www.ehcap.co.uk/links-health-information http://www.ekrhp.com/other-helpful-internet-resources/ http://www.elkcapital.net/cancerlinks.html http://www.emc-cme.com/useful-links/ http://www.emilymasnoon.com/prenatal-resources/ http://www.enteradoula.com/resources.html http://www.epm.org/resources/2010/Apr/14/prolife-resource-list/ http://www.etsu.edu/wrcetsu/links/other.aspx http://www.faceofbirth.com/resources http://www.faithhopeandlovejesus.org/services/resources http://www.fapgene.com/cancerlinks.html http://www.festive5k.net/about/resources-childrens-health http://www.festive5k.org/about/resources-childrens-health http://www.fightlikeagorilla.com/Donate_Resources.html http://www.first5amador.com/resources.html http://www.first5sanbenito.org/Resources.htm http://www.fiskelib.org/resources_useful_websites.shtml http://www.floridaadoptionagency.com/resources http://www.floridalifescience.com/patient/resources.htm http://www.friend4life.org/resources/additional_resources.php http://www.friendsofscott.org/resources.aspx http://www.gabrielscorner.com/apps/links/ http://www.gainesvillehousing.org/resources http://www.gatecitypharmacy.com/helpful-links http://www.georgialifescience.com/patient/resources.htm http://www.getpamperedforapurpose.org/helpful-links/barefoot-divas http://www.gha.net.au/ydhs/viewlinks.asp http://www.gohealthysteps.com/links/ http://www.gotcureage.com/resources http://www.greenbankbirthcenter.com/resources.html http://www.griefhealing.com/care-giving-links.htm http://www.grossmont.edu/people/laura-sim/links-to-health-related-sites.aspx http://www.grossmont.net/people/laura-sim/links-to-health-related-sites.aspx http://www.guysandstthomas.nhs.uk/our-services/haematology/types/leukaemia-and-myelodysplastic-syndromes/useful-links.aspx http://www.halosleep.com/health-and-safety-resources/ http://www.hammersimaging.com/links.htm http://www.hawaiichildbirthprofessionals.com/resources.html http://www.hawaiilifescience.com/patient/resources.htm http://www.hbmsf.org/resources.html http://www.healinghandsaurora.com/our-links/ http://www.healingiswithinus.com/birth-resources/ http://www.healingtreeplacenta.com/local-birth-service-providers--resources.html http://www.health-healingnetwork.com/pages/resources.html http://www.healthystartbfg.com/Resources-Links.aspx http://www.heartofadoptions.com/resources http://www.helpingkidsreachhigher.com/links.html http://www.hemoglobinanalyzermeter.com/links.html http://www.herhealthpt.com/apps/links/ http://www.hllmc.com/news-helpful-links.html http://www.hopefortoday.us/Links.htm http://www.hopefortwo.org/links.php http://www.hopenwa.org/cancerresources.htm http://www.horsepowerforlife.org/resources/useful-links/ http://www.howbigisaplacentabowl.com/home-birth-resources/ http://www.hpcsa.co.za/Links http://www.iadn.org/understanding-donation/additional-resources http://www.ianfairlie.org/useful-links/ http://www.icpcn.org/useful-links/ http://www.idaholifescience.com/patient/resources.htm http://www.idahoperinatal.org/links.php http://www.illinoislifescience.com/patient/resources.htm http://www.indianalifescience.com/patient/resources.htm http://www.inner-reflections.ca/links.htm http://www.inspiredhealthbydesign.com/additional-resources.html http://www.invisiblechildren.org/links/ http://www.iowabiotech.com/patient/resources.htm http://www.iowadonornetwork.org/understanding-donation/additional-resources http://www.ismpo.org/Cancer-Links http://www.ivysdiaperservice.com/p-23-useful-links.html http://www.jamahealthcare.com/Links/ http://www.johannesburgoncologist.co.za/useful-links.php http://www.joymassagetherapy.com/links.html http://www.kansaslifescience.com/patient/resources.htm http://www.karinbeach.com/p/resources.html http://www.kellysteam.org/online-resources/ http://www.kendraskisses.org/links.html http://www.kentuckylifescience.com/patient/resources.htm http://www.kidscancercare.ab.ca/childhood-cancer/resources.html http://www.koruselfdevelopment.com/index.php/links http://www.kycancerc.org/resources/cancerresources.php http://www.lapcsg.org/network-links.html http://www.lasbombas.org/cancer-resources.html http://www.lcdfnm.org/community_health_links.php http://www.lfitfoundation.org/healthcare-resources.html http://www.lifemelusa.com/html/links.html http://www.lifeslittletreasures.com.au/prematurity/useful-links/ http://www.lifeslittletreasures.org.au/prematurity/useful-links/ http://www.lifetreebirth.com/resources.html http://www.lilaussieprems.com.au/useful-links/ http://www.littleleapling.com/links http://www.littleorigin.ca/resources.html http://www.livehealthysiouxland.org/web-links/8-prevention/73-cord-blood-banking.html http://www.logansfund.org/links/ http://www.losninos.com/resources/helpful-links/ http://www.louisianalifescience.com/patient/resources.htm http://www.luminosawellness.com/resources.htm http://www.lymphoma.ca/lymphoma/resources/helpful-links http://www.madagio.com/links.html http://www.mainelifescience.com/patient/resources.htm http://www.mamaacademy.org.uk/about-us/links/ http://www.managingcml.com/resources-cml http://www.marylandlifescience.com/patient/resources.htm http://www.maryweslinhomes.org/apps/links/ http://www.massachusettslifescience.com/patient/resources.htm http://www.maternallyfit.co.uk/page.php?title=Links http://www.matthewandandrew.org/resources.html http://www.mazecordblood.com/resources http://www.mcmidwives.ca/resources/pregnancy-resources/ http://www.mds-foundation.org/links-to-related-organizations/ http://www.mednet.ca/en/links/ http://www.megspostpartumcare.com/resources.html http://www.mellottandassociates.com/links.php http://www.mercycancernetwork.org/cancerresources http://www.michiganlifescience.com/patient/resources.htm http://www.midwiferycareassociates.com/resources http://www.minnesotalifescience.com/patient/resources.htm http://www.mississippilifescience.com/patient/resources.htm http://www.missoula-doula.com/resources.html http://www.missourilifescience.com/patient/resources.htm http://www.mitchellfamilychiro.com/professional-links/ http://www.mldfamily.org/links-medical.html http://www.montanalifescience.com/patient/resources.htm http://www.motherandbabymatters.com/resources.html http://www.mothercomfortmassage.com/friends-and-links http://www.myclinicaltrial.com/Links.aspx http://www.nathanshope.org/resources.html http://www.nationalparkmedical.com/community/other-helpful-resources/ http://www.naturescrib.com/pages/green-living-resources http://www.nebraskalifescience.com/patient/resources.htm http://www.nemvch.com/links/ http://www.nevadalifesciences.com/patient/resources.htm http://www.newhampshirelifescience.com/patient/resources.htm http://www.newjerseylifescience.com/patient/resources.htm http://www.newlifeblessings.com/resources.html http://www.newmexicolifescience.com/patient/resources.htm http://www.newyorklifescience.com/patient/resources.htm http://www.nicuawareness.org/disorder-resources.html http://www.nocoplacentaencapsulation.com/birth-resources-directory/ http://www.northcarolinalifescience.com/patient/resources.htm http://www.northdakotalifescience.com/patient/resources.htm http://www.npidaho.org/idaho-nurse-practitioners-nursing-resources-np-organizations http://www.nursetogether.com/nurse-links-and-lists http://www.nwhealth-services.org/community-resources/ http://www.ohiolifescience.com/patient/resources.htm http://www.oklahomalifescience.com/patient/resources.htm http://www.oncologynurseadvisor.com/useful-links/section/1327/ http://www.oregonawhonn.org/apps/links/ http://www.oregonlifescience.com/patient/resources.htm http://www.organics.me/Links http://www.ourparentingvillage.org/resources/prenatal/ http://www.oxfordobgyninc.com/resources/related-links http://www.pamalam.co.uk/BreastCancer/LINKS_CANCER.htm http://www.pennsylvanialifescience.com/patient/resources.htm http://www.plummidwifery.com/resources-update/childbirth/ http://www.poorprenataldiagnosis.com/OtherLinks.aspx http://www.preciousmomentsbabeez.com/toronto-community-resources.html http://www.pregnancy-info.net/stemcell/links.html http://www.pregnantpause.org/people/links.php http://www.prestonridgepeds.com/index.cfm/id:663/Our-Resource-Links.html http://www.privatepregnancy.co.uk/information-and-guides/useful-links/ http://www.prolifelouisiana.org/resources/lartl-resource-library/stem-cell-research-and-cloning-resources.html http://www.pulaskicountyhealth.com/resources.html http://www.pvnfl.org/links.html http://www.rcn.org.uk/development/nursing_communities/rcn_forums/children_and_young_people_field_of_practice/cyp_specialist_care/cyp_cancer_nurses_community/links http://www.redtentbirth.com/local-resources.html http://www.researchacrossamerica.com/links/ http://www.rhodeislandlifescience.com/patient/resources.htm http://www.rileysarmy.com/links/ http://www.rms.org.uk/outreach/index/WebLinks http://www.rsic.org/rsic-services/reno-sparks-tribal-health-center/useful-health-links/ http://www.rutledgefoundation.org/initiatives/programs/resources-for-teens-and-young-adults/ http://www.sacredvesselacupuncture.com/links.html http://www.sarahbaymidwife.com/resources/ http://www.sarahsplace.us/Links.htm http://www.saukprairiehealthcare.org/About/Community-Health/Health-Education-Links http://www.savoritstudios.com/savor_it/prenatal-postpartum-resources.html http://www.sbbirthservices.com/Resources.html http://www.school-for-champions.com/health/resources.htm http://www.scidangelsforlife.com/links/ http://www.sdcms.org/PatientQuicklinks.aspx http://www.self-healing.com.au/LINKS/links.html http://www.setrust.hscni.net/services/UsefulLinks.htm http://www.shieldhealthcare.com/community/illinois/2014/05/02/helpful-links/ http://www.shinefertility.org/about-resources/ http://www.singlemothersbychoice.org/links/ http://www.sistersoflife.org/about-the-sisters-of-life/links http://www.smithvillefht.ca/links/informative-websites/cancer http://www.somaticworks.com/related-links.html http://www.soulchoice.org/links.html http://www.southcarolinalifescience.com/patient/resources.htm http://www.southdakotalifescience.com/patient/resources.htm http://www.southernalbertamyeloma.org/support_resources.htm http://www.splibraries.org/weblinks/health_orgs.html http://www.sri-online.org/links/educational-resources http://www.ssnorthbeach.org/links/cancer http://www.stageoflife.com/OutsideResources.aspx http://www.stedmundsbaby.com/links.html http://www.stokespfc.com/links.html http://www.stopcancer.org/main/default/t-resourcelinks.aspx http://www.stopin60.com/health-links.html http://www.storkandsprout.com/resources/ http://www.storycountyiowa.gov/quicklinks.aspx http://www.strashunpediatrics.com/resources.html http://www.suehallmd.com/links.html http://www.surfsidepeds.com/resources.html http://www.swchc.on.ca/pregnancy-and-breastfeeding-resource-links http://www.swedishamerican.org/services/cancer_care/links/ http://www.tapuaki.org.nz/links http://www.teenage-pregnancy.org/links.html http://www.tennesseelifescience.com/patient/resources.htm http://www.tevacares.org/OtherResources.aspx http://www.texashealthinstitute.org/links.html http://www.texaslifescience.com/patient/resources.htm http://www.thalassemia.org/learn-about-thalassemia/links/ http://www.themotherhoodcollective.org/resources/online-resources/ http://www.themothersprogram.ca/resources-and-information/for-your-region/eastern-ontario/ottawa http://www.theparentinggarden.com.au/pages/links http://www.theviscardicenter.org/resources/helpful-information.html http://www.thewholeofyou.com/pages/helpful-links.php http://www.thhn.co.uk/useful-links http://www.thinkagain.org/favorite-links.html http://www.threelollies.com/Info/Links.aspx http://www.thymomahope.org/resources.html http://www.tinytalk.co.uk/baby-signing-resources.php http://www.torontobirthcentre.ca/tbc-resources/ http://www.transfusionmedicine.ca/resources/links/Web-Links http://www.tumorsurgery.org/links.aspx http://www.turningpointkc.org/content/resources/national-resources http://www.twohandsbirth.com/resources.html http://www.uniteforher.org/resources.html http://www.utahlifescience.com/patient/resources.htm http://www.vermontlifescience.com/patient/resources.htm http://www.vickicullingassoc.co.nz/resources http://www.virginialifescience.com/patient/resources.htm http://www.viscardicenter.org/resources/helpful-information.html http://www.vitaehealthcenter.com/links.html http://www.walescancerbank.com/links-to-cancer-charities--organisations.htm http://www.walkinlab.com/resources/ http://www.washingtonlifescience.com/patient/resources.htm http://www.weepeek.ca/links/ http://www.westmidlandslupus.co.uk/links.html http://www.westparkhospital.org/service-womens-pregnancy-baby-resources.aspx http://www.westvirginialifescience.com/patient/resources.htm http://www.wgpfoundation.org/index.cfm/be-the-match-registry/helpful-links/ http://www.wingatemedicalcentre.co.uk/Useful_Links.php http://www.wisconsinlifescience.com/patient/resources.htm http://www.womeningovernment.org/oncology/hpv/resources/online http://www.wtamu.edu/student-support/medical-links.aspx http://www.wyominglifescience.com/patient/resources.htm http://www.yogacheryl.com/cancer-resources.html http://www.yogagro.com/resources.html http://www.yogitreewellbeing.com/pregnancybirthingbaby-resources.html http://www.yourbeststart.ca/links http://www.yoursurreydoula.com/links.html http://www.youthcancertrust.org/useful-links.aspx http://www.zacslegacyfoundation.org/links.htm http://yogaforbirthandbeyond.com.au/pre-natal-and-post-natal-yoga-canberra/links/ http://youngempowered.org/en/menu1/national-resources/ https://cancersupportvi.outsidesolutions.com/cancer_support_resources.html https://ci.sherman.tx.us/746/Parent-Links https://fasn.nursingnetwork.com/page/4231-professional-resource-links https://mitchellthorp.org/resources-and-affiliations https://mrdad.com/resources/ https://scinfo.org/links/genetics-web-sites-new-born-screening https://www.achancetogrowfilm.com/resources/resource-links/ https://www.alcancercongress.org/links/ https://www.aps-spr.org/resources/helpful-links.asp https://www.cpn-rpc.org/links.aspx https://www.idsco.org/links/ https://www.jmhny.org/index.php?Health%20Links https://www.laoncologysociety.org/links/ https://www.oscook.org/links/ https://www.patientservicesinc.org/For-Patients/Patient-Resources/External-Resources https://www.rmhca.org/family-resources/helpful-links-for-families/ https://www.sumocancer.org/links/ """# let stringRange = NSRange(location: 0, length: testString.utf16.count) let matches = regex.matches(in: testString, range: stringRange) var result: [[String]] = [] for match in matches { var groups: [String] = [] for rangeIndex in 1 ..< match.numberOfRanges { let nsRange = match.range(at: rangeIndex) guard !NSEqualRanges(nsRange, NSMakeRange(NSNotFound, 0)) else { continue } let string = (testString as NSString).substring(with: nsRange) groups.append(string) } if !groups.isEmpty { result.append(groups) } } print(result)

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 Swift 5.2, please visit: https://developer.apple.com/documentation/foundation/nsregularexpression