Regular Expressions 101

Save & Manage Regex

  • Current Version: 1
  • Save & Share
  • Community Library

Flavor

  • PCRE2 (PHP)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java
  • .NET 7.0 (C#)
  • Rust
  • PCRE (Legacy)
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests
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
Processing...

Test String

Code Generator

Generated Code

$re = '/(?<![A-Z]{1}[a-z]{1})(?=[A-Z](?![a-z]{1}))([a-zA-Z]{2,4})(?![a-z]{1})(?![A-Z]+[_])/'; $str = 'BackgroundDownloader.exe AccountBilling.url TechSupport.url DivxDecoder.dll ItemMarker.jpg MacLogo.jpg StylesLeft.css TheScript.js ReadMe.html ReadMe BasicCommands.html CharacterNaming.html GettingStarted.html ManualErrata.html RealmSelection.html AccountAdministration.html BlizzardInsider.html GameSuggestions.html GameSupport.html UninstallLocalization.xml WTF RunOnce.wtf WoW.exe WowError.exe World of Warcraft.app MacOS World of Warcraft PkgInfo DivX Gaming.component DivX Gaming DivX Gaming.rsrc Error Reporter.app Error Reporter MainMenu.nib WowErrorAE.exe AnimationData.dbc AreaPOI.dbc AreaTable.dbc AreaTrigger.dbc AttackAnimKits.dbc AttackAnimTypes.dbc AuctionHouse.dbc BankBagSlotPrices.dbc CameraShakes.dbc Cfg_Categories.dbc Cfg_Configs.dbc CharacterCreateCameras.dbc CharacterFacialHairStyles.dbc CharBaseInfo.dbc CharHairGeosets.dbc CharHairTextures.dbc CharSections.dbc CharStartOutfit.dbc CharVariations.dbc ChatChannels.dbc ChatProfanity.dbc ChrClasses.dbc ChrRaces.dbc CinematicCamera.dbc CinematicSequences.dbc CreatureDisplayInfo.dbc CreatureDisplayInfoExtra.dbc CreatureFamily.dbc CreatureModelData.dbc CreatureSoundData.dbc CreatureType.dbc DeathThudLookups.dbc DurabilityCosts.dbc DurabilityQuality.dbc EmotesText.dbc EmotesTextData.dbc EnvironmentalDamage.dbc FactionGroup.dbc FactionTemplate.dbc FootprintTextures.dbc FootstepTerrainLookup.dbc GameObjectDisplayInfo.dbc GroundEffectDoodad.dbc GroundEffectTexture.dbc HelmetGeosetVisData.dbc ItemClass.dbc ItemDisplayInfo.dbc ItemGroupSounds.dbc ItemPetFood.dbc ItemRandomProperties.dbc ItemSet.dbc ItemSubClass.dbc ItemSubClassMask.dbc ItemVisualEffects.dbc ItemVisuals.dbc LanguageWords.dbc LoadingScreens.dbc LoadingScreenTaxiSplines.dbc LockType.dbc NameGen.dbc NamesProfanity.dbc NamesReserved.dbc PageTextMaterial.dbc PaperDollItemFrame.dbc PetLoyalty.dbc PetPersonality.dbc QuestInfo.dbc QuestSort.dbc ServerMessages.dbc SheatheSoundLookups.dbc SkillCostsData.dbc SkillLine.dbc SkillLineAbility.dbc SkillLineCategory.dbc SkillRaceClassInfo.dbc SkillTiers.dbc SoundAmbience.dbc SoundCharacterMacroLines.dbc SoundEntries.dbc SoundProviderPreferences.dbc SoundSamplePreferences.dbc SoundWaterType.dbc SpellAuraNames.dbc SpellCastTimes.dbc SpellCategory.dbc SpellChainEffects.dbc SpellDispelType.dbc SpellDuration.dbc SpellEffectCameraShakes.dbc SpellEffectNames.dbc SpellFocusObject.dbc SpellIcon.dbc SpellItemEnchantment.dbc SpellRadius.dbc SpellRange.dbc SpellShapeshiftForm.dbc SpellVisual.dbc SpellVisualEffectName.dbc SpellVisualKit.dbc SpellVisualPrecastTransitions.dbc StableSlotPrices.dbc Startup_Strings.dbc StringLookups.dbc TalentTab.dbc TaxiNodes.dbc TaxiPath.dbc TaxiPathNode.dbc TerrainType.dbc TerrainTypeSounds.dbc TransportAnimation.dbc UnitBlood.dbc UnitBloodLevels.dbc VideoHardware.dbc VocalUISounds.dbc WeaponImpactSounds.dbc WeaponSwingSounds2.dbc WorldMapArea.dbc WorldMapContinent.dbc WorldMapOverlay.dbc WorldSafeLocs.dbc ZoneIntroMusicTable.dbc ZoneMusic.dbc ArialN.ttf FrizQT__.ttf Morpheus.ttf Skurri.ttf AbilitiesFrame AuctionFrame BuyoutIcon.blp BankFrame BattlefieldFrame BlueGrad64.blp Button-Backpack-Up.blp ButtonHilight-Round.blp ButtonHilight-Square.blp ButtonHilight-SquareQuickslot.blp CancelButton-Down.blp CancelButton-Highlight.blp CancelButton-Up.blp CheckButtonHilight.blp GlowStar.blp GreenGrad64.blp IconBorder-GlowRing.blp OldButtonHilight-Square.blp Spell-Reset.blp TalkToMe.m2 TalkToMeBlue.m2 TalkToMeGreen.m2 TalkToMeGrey.m2 TalkToMeQuestionMark.m2 TalkToMeQuestion_Grey.m2 White8x8.blp YellowOrange64.blp CastingBar CharacterFrame BarFill.blp BarHighlight.blp ComboPoint.blp TemporaryPortrait-Female-Dwarf.blp TemporaryPortrait-Female-Gnome.blp TemporaryPortrait-Female-Human.blp TemporaryPortrait-Female-NightElf.blp TemporaryPortrait-Female-Orc.blp TemporaryPortrait-Female-Scourge.blp TemporaryPortrait-Female-Tauren.blp TemporaryPortrait-Female-Troll.blp TemporaryPortrait-Male-Dwarf.blp TemporaryPortrait-Male-Gnome.blp TemporaryPortrait-Male-Human.blp TemporaryPortrait-Male-NightElf.blp TemporaryPortrait-Male-Orc.blp TemporaryPortrait-Male-Scourge.blp TemporaryPortrait-Male-Tauren.blp TemporaryPortrait-Male-Troll.blp TemporaryPortrait-Monster.blp TemporaryPortrait.blp TempPortrait.blp TempPortraitAlphaMask.blp TempPortraitAlphaMaskSmall.blp ChatFrame ChatFrameBackground.blp ChatFrameBorder.blp ChatFrameColorSwatch.blp ChatFrameExpandArrow.blp ChatFrameInnerBorder.blp ChatFrameTab.blp ClassTrainerFrame ComboFrame ComboFrameBackground.blp Common-Input-Border.blp ContainerFrame CursorIconsNew.blp GatherHerbs.blp LootAll.blp PickLock.blp UnableAttack.blp UnableBuy.blp UnableCast.blp UnableGatherHerbs.blp UnableInspect.blp UnableInteract.blp UnableItem.blp UnableLootAll.blp UnableMail.blp UnableMine.blp UnablePickLock.blp UnablePickup.blp UnablePoint.blp UnableRepair.blp UnableSkin.blp UnableSpeak.blp UnableTaxi.blp UnableTrainer.blp DialogFrame DialogAlertIcon.blp FrameXML ActionBarFrame.xml ActionButton.lua ActionButtonTemplate.xml AttackButton.lua AuctionFrame.lua AuctionFrame.xml BankFrame.lua BankFrame.xml BasicControls.xml BattlefieldFrame.lua BattlefieldFrame.xml BonusActionBarFrame.lua BonusActionBarFrame.xml BuffFrame.lua BuffFrame.xml CastingBarFrame.lua CastingBarFrame.xml CharacterFrame.lua CharacterFrame.xml ChatFrame.lua ChatFrame.xml CinematicFrame.lua CinematicFrame.xml ClassTrainerFrame.lua ClassTrainerFrame.xml CoinPickupFrame.lua CoinPickupFrame.xml ColorPickerFrame.xml CombatFeedback.lua CombatFeedback.xml CombatLog.lua CombatLog.xml ComboFrame.lua ComboFrame.xml ContainerFrame.lua ContainerFrame.xml CraftFrame.lua CraftFrame.xml DebugUI.xml DurabilityFrame.lua DurabilityFrame.xml FadingFrame.lua FadingFrame.xml FloatingChatFrame.lua FloatingChatFrame.xml FrameXML.toc FriendsFrame.lua FriendsFrame.xml GameMenuFrame.xml GameTime.lua GameTime.xml GameTooltip.lua GameTooltip.xml GlobalStrings.lua GossipFrame.lua GossipFrame.xml GuildRegistrarFrame.lua GuildRegistrarFrame.xml HealthBar.lua HelpFrame.lua HelpFrame.xml InspectFrame.lua InspectFrame.xml InspectPaperDollFrame.lua InspectPaperDollFrame.xml ItemButtonTemplate.lua ItemButtonTemplate.xml ItemRef.lua ItemRef.xml ItemTextFrame.lua ItemTextFrame.xml KeyBindingFrame.lua KeyBindingFrame.xml LocaleProperties.lua LootFrame.lua LootFrame.xml MacroFrame.lua MacroFrame.xml MailFrame.lua MailFrame.xml MainMenuBar.lua MainMenuBar.xml MainMenuBarBagButtons.lua MainMenuBarBagButtons.xml MainMenuBarMicroButtons.lua MainMenuBarMicroButtons.xml MerchantFrame.lua MerchantFrame.xml MirrorTimer.lua MirrorTimer.xml MoneyFrame.lua MoneyFrame.xml MoneyInputFrame.lua MoneyInputFrame.xml OpacitySliderFrame.xml OptionsFrame.lua OptionsFrame.xml PaperDollFrame.lua PaperDollFrame.xml PartyFrame.xml PartyMemberFrame.lua PetActionBarFrame.lua PetActionBarFrame.xml PetFrame.lua PetFrame.xml PetitionFrame.lua PetitionFrame.xml PetPaperDollFrame.lua PetPaperDollFrame.xml PetPopup.lua PetPopup.xml PetStable.lua PetStable.xml PlayerFrame.lua PlayerFrame.xml QuestFrame.lua QuestFrame.xml QuestLogFrame.lua QuestLogFrame.xml QuestTimerFrame.lua QuestTimerFrame.xml RaidFrame.lua RaidFrame.xml ReputationFrame.lua ReputationFrame.xml SkillFrame.lua SkillFrame.xml SoundOptionsFrame.lua SoundOptionsFrame.xml SpellBookFrame.lua SpellBookFrame.xml StackSplitFrame.lua StackSplitFrame.xml StaticPopup.lua StaticPopup.xml StatsFrame.lua StatsFrame.xml SuggestFrame.lua SuggestFrame.xml TabardFrame.lua TabardFrame.xml TalentFrame.lua TalentFrame.xml TalentTrainerFrame.lua TalentTrainerFrame.xml TargetFrame.lua TargetFrame.xml TaxiFrame.lua TaxiFrame.xml TextStatusBar.lua TextStatusBar.xml TradeFrame.lua TradeFrame.xml TradeSkillFrame.lua TradeSkillFrame.xml TutorialFrame.lua TutorialFrame.xml UI.xsd UnitFrame.lua UnitFrame.xml UnitPopup.lua UnitPopup.xml WorldFrame.lua WorldFrame.xml WorldMapFrame.lua WorldMapFrame.xml ZoneText.xml FriendsFrame FriendsFrameScrollIcon.blp GuildFrame-BotLeft.blp GuildFrame-BotRight.blp IgnoreFrame-BotLeft.blp IgnoreFrame-BotRight.blp WhoFrame-BotLeft.blp WhoFrame-BotRight.blp WhoFrame-ColumnTabs.blp CharacterCreate CharacterCreate-Faction.blp CharacterCreate-LabelFrame.blp CharacterSelect Glue-CharacterSelect-Highlight.blp Glues-CharacterSelect-Highlight.blp Glues-CharacterSelect-InactiveTab.blp Glues-CharacterSelect-Tab.blp Glues-InfoPanel-BotLeft.blp Glues-InfoPanel-BotRight.blp Glues-InfoPanel-TopLeft.blp Glues-InfoPanel-TopRight.blp Glue-LeftArrow-Button-Down.blp Glue-LeftArrow-Button-Highlight.blp Glue-LeftArrow-Button-Up.blp Glue-Panel-Button-Disabled.blp Glue-Panel-Button-Down.blp Glue-Panel-Button-Highlight.blp Glue-Panel-Button-Up.blp Glue-RightArrow-Button-Down.blp Glue-RightArrow-Button-Highlight.blp Glue-RightArrow-Button-Up.blp Glue-Tooltip-Background.blp Glue-Tooltip-Border.blp Glues-BigButton-Down.blp Glues-BigButton-Glow.blp Glues-BigButton-Highlight.blp Glues-BigButton-Rays.blp Glues-BigButton-Up.blp Glues-EditBox-Background.blp Glues-Logo-Left.blp Glues-Logo-Right.blp Glues-Logo.blp Glues-Text-Gradient.blp Glues-WoW-Logo.blp TextPanel-Border.blp BlastedLands1.blp BlastedLands2.blp BlastedLands3.blp BlastedLands4.blp BlastedLands5.blp BlastedLands6.blp DragonIsles1.blp DragonIsles2.blp DragonIsles3.blp DragonIsles4.blp DragonIsles5.blp DragonIsles6.blp DwarfCrest1.blp DwarfCrest2.blp DwarfCrest3.blp DwarfCrest4.blp ForsakenCrest1.blp ForsakenCrest2.blp ForsakenCrest3.blp ForsakenCrest4.blp HordeBanner1.blp HordeBanner2.blp HordeBanner3.blp HordeBanner4.blp NightElves1.blp NightElves2.blp NightElves3.blp NightElves4.blp NightElves5.blp NightElves6.blp NightsHollow1.blp NightsHollow2.blp NightsHollow3.blp NightsHollow4.blp ShootingDwarf1.blp ShootingDwarf2.blp ShootingDwarf3.blp ShootingDwarf4.blp ShootingDwarf5.blp ShootingDwarf6.blp SouthernDesolace1.blp SouthernDesolace2.blp SouthernDesolace3.blp SouthernDesolace4.blp SouthernDesolace5.blp SouthernDesolace6.blp SwampofSorrows1.blp SwampofSorrows2.blp SwampofSorrows3.blp SwampofSorrows4.blp SwampofSorrows5.blp SwampofSorrows6.blp ThousandNeedles1.blp ThousandNeedles2.blp ThousandNeedles3.blp ThousandNeedles4.blp ThousandNeedles5.blp ThousandNeedles6.blp ThunderBluff1.blp ThunderBluff2.blp ThunderBluff3.blp ThunderBluff4.blp ThunderBluff5.blp ThunderBluff6.blp TirisfallGlades1.blp TirisfallGlades2.blp TirisfallGlades3.blp TirisfallGlades4.blp TirisfallGlades5.blp TirisfallGlades6.blp TrollBanner1.blp TrollBanner2.blp TrollBanner3.blp TrollBanner4.blp LoadingBar Loading-BarBackground.blp Loading-BarBorder.blp Loading-BarFill.blp Loading-BarGlass.blp Loading-BarGlow.blp LoadingScreens DynamicElements.blp LoadScreenCave.blp LoadScreenDungeon.blp LoadScreenEasternKingdom.blp LoadScreenEnviroment.blp LoadScreenKalimdor.blp LoadScreenRaid.blp LoadScreenRuinedCity.blp Glues-AccountLoginFrame.blp Glues-CheckBox-Background.blp Glues-CheckBox-Check.blp Glues-CheckBox-Depressed.blp Glues-CheckBox-Highlight.blp Glues-ESRBRating.blp Glues-KoreanRating.blp Glues-LoginProgressFrame.blp Glues-RealmSelect.blp Glues-TOS-TopRight.blp MainMenu Glues-BlizzardLogo.blp IronForgeSteamtank01.blp RoadAlpha.blp SnowSpinner.blp ElwynnTreeTallComp_01.blp Sidewalk.blp Street 02.blp AeriePeak01.blp DarkPortal_nick_01.blp DarkPortal_platform_01.blp DarkPortal_platform_02.blp DarkPortal_statue_03.blp DarkPortal_staue_01.blp DarkPortal_staue_02.blp DarkPortal_stone_01.blp DarkPortal_trim_01.blp DurotarRock03.blp ElwynnGrass1skin.blp FlameLick.blp GenericGlow2_32.blp KalidarMidTree_purple01.blp AnyHandleRedWrapped04.blp BattleGladeArrow.blp BattleGladeSword.blp DurotarWeed01.blp DwarfMaleSkin2.blp Plate_A_01Silver.blp NightElfFemaleHairSkin.blp Robe_C_01Crimson copy.blp HelmPlate03_OrM.blp OrcMaleSkinArmor.blp ShoulderPlate03_OrM.blp ScourgeFemaleHairSkin.blp ScourgeFemaleSkin.blp ScourgeFemaleSkin02.blp Leather_A_01Dark copy.blp Leather_D_03Brown copy.blp Stave_2H_Other_C_01Gold2.blp TaurenMaleSkin_Extra.blp SilverPineTree01CanopySkin.blp SilverPineTree01TrunkSkin.blp SpookyBush06.blp TirrisFallCanopyTree01_Branch2.blp TirrisFallCanopyTree01_Trunk.blp TirrisFallCanopyTree05_Branch.blp WarningTreeWeb.blp WestFallGrassBaseBlurred.blp GlueXML AccountLogin.lua AccountLogin.xml CharacterCreate.lua CharacterCreate.xml CharacterSelect.lua CharacterSelect.xml CreditsFrame.lua CreditsFrame.xml GlueBasicControls.xml GlueButtons.lua GlueButtons.xml GlueDialog.lua GlueDialog.xml GlueFonts.xml GlueLocalization.lua GlueLocalization.xml GlueParent.lua GlueParent.xml GlueSplash.xml GlueStrings.lua GlueTemplates.lua GlueTemplates.xml GlueTooltip.xml GlueXML.toc MovieFrame.lua MovieFrame.xml PatchDownload.lua PatchDownload.xml RaceSelect.lua RaceSelect.xml RealmList.lua RealmList.xml RealmWizard.lua RealmWizard.xml GossipFrame ActiveQuestIcon.blp AvailableQuestIcon.blp BankerGossipIcon.blp BinderGossipIcon.blp GossipGossipIcon.blp HealerGossipIcon.blp PetitionGossipIcon.blp TabardGossipIcon.blp TaxiGossipIcon.blp TrainerGossipIcon.blp UnlearnGossipIcon.blp VendorGossipIcon.blp GroupFrame HelpFrame HelpFrame-BotLeft.blp HelpFrame-BotRight.blp HelpFrame-Bottom.blp HelpFrame-Top.blp HelpFrame-TopLeft.blp HelpFrame-TopRight.blp HelpFrameButton-Highlight.blp HelpFrameDivider.blp HelpFrameTab-Active.blp HelpFrameTab-Inactive.blp OpenTicketIcon.blp Ability_Ambush.blp Ability_BackStab.blp Ability_BullRush.blp Ability_CheapShot.blp Ability_CriticalStrike.blp Ability_Defend.blp Ability_Devour.blp Ability_Druid_AquaticForm.blp Ability_Druid_Bash.blp Ability_Druid_CatForm.blp Ability_Druid_CatFormAttack.blp Ability_Druid_ChallangingRoar.blp Ability_Druid_Cower.blp Ability_Druid_Dash.blp Ability_Druid_DemoralizingRoar.blp Ability_Druid_Disembowel.blp Ability_Druid_Enrage.blp Ability_Druid_Maul.blp Ability_Druid_Rake.blp Ability_Druid_Ravage.blp Ability_Druid_SupriseAttack.blp Ability_Druid_Swipe.blp Ability_Druid_TravelForm.blp Ability_DualWield.blp Ability_Ensnare.blp Ability_EyeOfTheOwl.blp Ability_FiegnDead.blp Ability_GhoulFrenzy.blp Ability_GolemStormBolt.blp Ability_GolemThunderClap.blp Ability_Gouge.blp Ability_Hibernation.blp Ability_Hunter_AimedShot.blp Ability_Hunter_AspectOfTheMonkey.blp Ability_Hunter_BeastCall.blp Ability_Hunter_BeastCall02.blp Ability_Hunter_BeastSoothe.blp Ability_Hunter_BeastTaming.blp Ability_Hunter_BeastTraining.blp Ability_Hunter_CriticalShot.blp Ability_Hunter_EagleEye.blp Ability_Hunter_MendPet.blp Ability_Hunter_Pathfinding.blp Ability_Hunter_Pet_Bat.blp Ability_Hunter_Pet_Bear.blp Ability_Hunter_Pet_Boar.blp Ability_Hunter_Pet_Cat.blp Ability_Hunter_Pet_Crab.blp Ability_Hunter_Pet_Crocolisk.blp Ability_Hunter_Pet_Gorilla.blp Ability_Hunter_Pet_Hyena.blp Ability_Hunter_Pet_Owl.blp Ability_Hunter_Pet_Raptor.blp Ability_Hunter_Pet_Scorpid.blp Ability_Hunter_Pet_Spider.blp Ability_Hunter_Pet_TallStrider.blp Ability_Hunter_Pet_Turtle.blp Ability_Hunter_Pet_Vulture.blp Ability_Hunter_Pet_WindSerpent.blp Ability_Hunter_Pet_Wolf.blp Ability_Hunter_Quickshot.blp Ability_Hunter_RunningShot.blp Ability_Hunter_SniperShot.blp Ability_Hunter_SwiftStrike.blp Ability_ImpalingBolt.blp Ability_Kick.blp Ability_Marksmanship.blp Ability_MeleeDamage.blp Ability_Mount_BlackDireWolf.blp Ability_Mount_BlackPanther.blp Ability_Mount_JungleTiger.blp Ability_Mount_MechaStrider.blp Ability_Mount_MountainRam.blp Ability_Mount_NightmareHorse.blp Ability_Mount_PinkTiger.blp Ability_Mount_Raptor.blp Ability_Mount_RidingHorse.blp Ability_Mount_Undeadhorse.blp Ability_Mount_WhiteDireWolf.blp Ability_Mount_WhiteTiger.blp Ability_Parry.blp Ability_Physical_Taunt.blp Ability_PierceDamage.blp Ability_PoisonArrow.blp Ability_Poisons.blp Ability_PoisonSting.blp Ability_Racial_Avatar.blp Ability_Racial_BearForm.blp Ability_Racial_BloodRage.blp Ability_Racial_Cannibalize.blp Ability_Racial_ShadowMeld.blp Ability_Racial_Ultravision.blp Ability_Repair.blp Ability_Rogue_Ambush.blp Ability_Rogue_Disguise.blp Ability_Rogue_Distract.blp Ability_Rogue_DualWeild.blp Ability_Rogue_Eviscerate.blp Ability_Rogue_FeignDeath.blp Ability_Rogue_Feint.blp Ability_Rogue_Garrote.blp Ability_Rogue_KidneyShot.blp Ability_Rogue_Rupture.blp Ability_Rogue_SliceDice.blp Ability_Rogue_Sprint.blp Ability_Rogue_Trip.blp Ability_Sap.blp Ability_Seal.blp Ability_SearingArrow.blp Ability_ShockWave.blp Ability_ShootWand.blp Ability_Smash.blp Ability_Spy.blp Ability_Stealth.blp Ability_SteelMelee.blp Ability_TheBlackArrow.blp Ability_Throw.blp Ability_ThunderBolt.blp Ability_ThunderClap.blp Ability_TownWatch.blp Ability_Tracking.blp Ability_TrueShot.blp Ability_UpgradeMoonGlaive.blp Ability_Vanish.blp Ability_Warrior_BattleShout.blp Ability_Warrior_Challange.blp Ability_Warrior_Charge.blp Ability_Warrior_Cleave.blp Ability_Warrior_DecisiveStrike.blp Ability_Warrior_DefensiveStance.blp Ability_Warrior_Disarm.blp Ability_Warrior_InnerRage.blp Ability_Warrior_OffensiveStance.blp Ability_Warrior_PunishingBlow.blp Ability_Warrior_Revenge.blp Ability_Warrior_Riposte.blp Ability_Warrior_SavageBlow.blp Ability_Warrior_ShieldBash.blp Ability_Warrior_ShieldWall.blp Ability_Warrior_Sunder.blp Ability_Warrior_WarCry.blp Ability_WarStomp.blp Ability_Whirlwind.blp Inv_Misc_ammo_Gunpowder_03.blp Inv_Misc_ammo_Gunpowder_04.blp Inv_Misc_ammo_Gunpowder_05.blp Inv_Misc_ammo_Gunpowder_06.blp Inv_Misc_ammo_Gunpowder_07.blp Racial_Dwarf_FindTreasure.blp Spell_Arcane_Blink.blp Spell_Arcane_PortalDarnassus.blp Spell_Arcane_PortalIronForge.blp Spell_Arcane_PortalOrgrimmar.blp Spell_Arcane_PortalStormWind.blp Spell_Arcane_PortalThunderBluff.blp Spell_Arcane_PortalUnderCity.blp Spell_Arcane_StarFire.blp Spell_Arcane_TeleportDarnassus.blp Spell_Arcane_TeleportIronForge.blp Spell_Arcane_TeleportOrgrimmar.blp Spell_Arcane_TeleportStormWind.blp Spell_Arcane_TeleportThunderBluff.blp Spell_Arcane_TeleportUnderCity.blp Spell_Fire_EnchantWeapon.blp Spell_Fire_Fire.blp Spell_Fire_FireArmor.blp Spell_Fire_Fireball.blp Spell_Fire_Fireball02.blp Spell_Fire_FireBolt.blp Spell_Fire_FireBolt02.blp Spell_Fire_FlameBlades.blp Spell_Fire_FlameBolt.blp Spell_Fire_FlameShock.blp Spell_Fire_FlameTounge.blp Spell_Fire_Flare.blp Spell_Fire_Immolation.blp Spell_Fire_Incinerate.blp Spell_Fire_LavaSpawn.blp Spell_Fire_MeteorStorm.blp Spell_Fire_SealOfFire.blp Spell_Fire_SearingTotem.blp Spell_Fire_SelfDestruct.blp Spell_Fire_SoulBurn.blp Spell_Fire_SunKey.blp Spell_Fire_Volcano.blp Spell_Fire_WindsofWoe.blp Spell_Frost_ChainsOfIce.blp Spell_Frost_ChillingArmor.blp Spell_Frost_ChillingBlast.blp Spell_Frost_ChillingBolt.blp Spell_Frost_FreezingBreath.blp Spell_Frost_Frost.blp Spell_Frost_FrostArmor.blp Spell_Frost_FrostArmor02.blp Spell_Frost_FrostBlast.blp Spell_Frost_Frostbolt.blp Spell_Frost_FrostBolt02.blp Spell_Frost_FrostBrand.blp Spell_Frost_FrostNova.blp Spell_Frost_FrostShock.blp Spell_Frost_FrostWard.blp Spell_Frost_Glacier.blp Spell_Frost_IceClaw.blp Spell_Frost_IceShard.blp Spell_Frost_IceShock.blp Spell_Frost_IceStorm.blp Spell_Frost_ManaBurn.blp Spell_Frost_ManaRecharge.blp Spell_Frost_Stun.blp Spell_Frost_SummonWaterElemental.blp Spell_Frost_WindWalkOn.blp Spell_Frost_Wisp.blp Spell_Frost_WizardMark.blp Spell_Holy_AshesToAshes.blp Spell_Holy_AuraOfLight.blp Spell_Holy_BlessingOfAgility.blp Spell_Holy_BlessingOfProtection.blp Spell_Holy_BlessingOfStamina.blp Spell_Holy_BlessingOfStrength.blp Spell_Holy_Devotion.blp Spell_Holy_DevotionAura.blp Spell_Holy_DispelMagic.blp Spell_Holy_DivineIntervention.blp Spell_Holy_Dizzy.blp Spell_Holy_Excorcism.blp Spell_Holy_Excorcism_02.blp Spell_Holy_FistOfJustice.blp Spell_Holy_FlashHeal.blp Spell_Holy_GreaterHeal.blp Spell_Holy_HarmUndeadAura.blp Spell_Holy_Heal.blp Spell_Holy_Heal02.blp Spell_Holy_HealingAura.blp Spell_Holy_HolyBolt.blp Spell_Holy_HolyProtection.blp Spell_Holy_HolySmite.blp Spell_Holy_InnerFire.blp Spell_Holy_LayOnHands.blp Spell_Holy_LesserHeal.blp Spell_Holy_LesserHeal02.blp Spell_Holy_MagicalSentry.blp Spell_Holy_MindSooth.blp Spell_Holy_MindVision.blp Spell_Holy_NullifyDisease.blp Spell_Holy_PowerWordShield.blp Spell_Holy_PrayerOfHealing.blp Spell_Holy_PrayerOfHealing02.blp Spell_Holy_Purify.blp Spell_Holy_Redemption.blp Spell_Holy_RemoveCurse.blp Spell_Holy_Renew.blp Spell_Holy_Restoration.blp Spell_Holy_Resurrection.blp Spell_Holy_Retribution.blp Spell_Holy_RetributionAura.blp Spell_Holy_RighteousFury.blp Spell_Holy_RighteousnessAura.blp Spell_Holy_SealOfFury.blp Spell_Holy_SealOfMight.blp Spell_Holy_SealOfProtection.blp Spell_Holy_SealOfRighteousness.blp Spell_Holy_SealOfSacrifice.blp Spell_Holy_SealOfSalvation.blp Spell_Holy_SealOfValor.blp Spell_Holy_SealOfWisdom.blp Spell_Holy_SealOfWrath.blp Spell_Holy_SearingLight.blp Spell_Holy_SenseUndead.blp Spell_Holy_Silence.blp Spell_Holy_TurnUndead.blp Spell_Holy_WordFortitude.blp Spell_Ice_Lament.blp Spell_Ice_MagicDamage.blp Spell_Lightning_LightningBolt01.blp Spell_Magic_FeatherFall.blp Spell_Magic_LesserInvisibilty.blp Spell_Magic_MageArmor.blp Spell_Magic_PolymorphChicken.blp Spell_Magic_PolymorphPig.blp Spell_Misc_ConjureManaJewel.blp Spell_Misc_Drink.blp Spell_Misc_Food.blp Spell_Nature_AbolishMagic.blp Spell_Nature_Acid_01.blp Spell_Nature_AgitatingTotem.blp Spell_Nature_AncestralGuardian.blp Spell_Nature_AstralRecal.blp Spell_Nature_AstralRecalGroup.blp Spell_Nature_BloodLust.blp Spell_Nature_Brilliance.blp Spell_Nature_CallStorm.blp Spell_Nature_ChainLightning.blp Spell_Nature_CorrosiveBreath.blp Spell_Nature_CrystalBall.blp Spell_Nature_Cyclone.blp Spell_Nature_Drowsy.blp Spell_Nature_DryadDispelMagic.blp Spell_Nature_EarthBind.blp Spell_Nature_EarthBindTotem.blp Spell_Nature_Earthquake.blp Spell_Nature_EarthShock.blp Spell_Nature_EnchantArmor.blp Spell_Nature_FaerieFire.blp Spell_Nature_FarSight.blp Spell_Nature_ForceOfNature.blp Spell_Nature_GuardianWard.blp Spell_Nature_HealingTouch.blp Spell_Nature_HealingWaveGreater.blp Spell_Nature_HealingWaveLesser.blp Spell_Nature_InvisibilityTotem.blp Spell_Nature_Invisibilty.blp Spell_Nature_Lightning.blp Spell_Nature_LightningBolt.blp Spell_Nature_LightningShield.blp Spell_Nature_MagicImmunity.blp Spell_Nature_ManaRegenTotem.blp Spell_Nature_MassTeleport.blp Spell_Nature_MirrorImage.blp Spell_Nature_MoonGlow.blp Spell_Nature_MoonKey.blp Spell_Nature_NaturesBlessing.blp Spell_Nature_NaturesWrath.blp Spell_Nature_NatureTouchDecay.blp Spell_Nature_NatureTouchGrow.blp Spell_Nature_NullifyDisease.blp Spell_Nature_NullifyPoison.blp Spell_Nature_NullifyPoison_02.blp Spell_Nature_NullWard.blp Spell_Nature_Polymorph.blp'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 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