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

/
/
g

Test String

Substitution

Processing...

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"(?<=:\s) (.+) " test_str = ("# ToC\n" "๐•†๐•ฆ๐•ฅ๐•๐•š๐•Ÿ๐•–\n" "๐šƒ๐šข๐š™๐šŽ๐š›๐š ๐š›๐š’๐š๐šŽ๐š›\n" "๐’๐ž๐ซ๐ข๐Ÿ๐Ÿ\n" "๐—ฆ๐—ฎ๐—ป๐˜€\n" "๐™Ž๐™–๐™ฃ๐™จ - ๐™ž๐™ฉ๐™–๐™ก๐™ž๐™˜๐™จ\n" "Sแดแด€สŸสŸ Cแด€แด˜s, แ‘•Oแ—ฐIแ‘•\n" "(Preset) for shortcut - แขแŽชแšแŽขแŽฌแž\n\n" "๐•†๐•ฆ๐•ฅ๐•๐•š๐•Ÿ๐•–\n" "โ„‚๐•†๐•Œโ„•๐•‹: Count ๐•€โ„•โ„™๐•Œ๐•‹ ๐•‹๐•โ„™๐”ผ: Type\n" "โ„•๐”ธ๐•„๐”ผ: Type\n" "๐”ผ๐•๐•‹๐”ผโ„•๐•Š๐•€๐•†โ„•: Type\n" "โ„‚โ„๐”ผ๐”ธ๐•‹๐”ผ๐”ป: Type \n" "๐•„๐•†๐”ป๐•€๐”ฝ๐•€๐”ผ๐”ป: Last Modified Date\n" "โ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆ\n" "โ„‚๐• ๐•ฆ๐•Ÿ๐•ฅ: Count ๐•€๐•Ÿ๐•ก๐•ฆ๐•ฅ ๐•ฅ๐•ช๐•ก๐•–: Type\n" "โ„•๐•’๐•ž๐•–: Name\n" "๐”ผ๐•ฉ๐•ฅ๐•–๐•Ÿ๐•ค๐•š๐• ๐•Ÿ: File Extension\n" "โ„‚๐•ฃ๐•–๐•’๐•ฅ๐•–๐••: Creation Date \n" "๐•„๐• ๐••๐•š๐•—๐•š๐•–๐••: Last Modified Date\n" "โตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒโตŒ\n\n" "๐šƒ๐šข๐š™๐šŽ๐š›๐š ๐š›๐š’๐š๐šŽ๐š›\n" "๐™ฒ๐™พ๐š„๐™ฝ๐šƒ: Count ๐™ธ๐™ฝ๐™ฟ๐š„๐šƒ ๐šƒ๐šˆ๐™ฟ๐™ด: Type\n" "๐™ฝ๐™ฐ๐™ผ๐™ด: Type\n" "๐™ด๐š‡๐šƒ๐™ด๐™ฝ๐š‚๐™ธ๐™พ๐™ฝ: Type\n" "๐™ฒ๐š๐™ด๐™ฐ๐šƒ๐™ด๐™ณ: Type ๐™ผ๐™พ๐™ณ๐™ธ๐™ต๐™ธ๐™ด๐™ณ: Last Modified Date\n" "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n" "๐™ฒ๐š˜๐šž๐š—๐š: Count ๐™ธ๐š—๐š™๐šž๐š ๐š๐šข๐š™๐šŽ: Type\n" "๐™ฝ๐šŠ๐š–๐šŽ: Name\n" "๐™ด๐šก๐š๐šŽ๐š—๐šœ๐š’๐š˜๐š—: File Extension\n" "๐™ฒ๐š›๐šŽ๐šŠ๐š๐šŽ๐š: Creation Date \n" "๐™ผ๐š˜๐š๐š’๐š๐š’๐šŽ๐š: Last Modified Date\n" "โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•\n\n" "๐’๐ž๐ซ๐ข๐Ÿ\n" "๐‚๐Ž๐”๐๐“: Count ๐ˆ๐๐๐”๐“ ๐“๐˜๐๐„: Type\n" "๐๐€๐Œ๐„: Type\n" "๐„๐—๐“๐„๐๐’๐ˆ๐Ž๐: Type\n" "๐‚๐‘๐„๐€๐“๐„๐ƒ: Type ๐Œ๐Ž๐ƒ๐ˆ๐…๐ˆ๐„๐ƒ: Last Modified Date\n" "โˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽโˆŽ\n" "๐‚๐—ผ๐ฎ๐ง๐ญ: Count ๐ˆ๐ง๐ฉ๐ฎ๐ญ ๐ญ๐ฒ๐ฉ๐ž: Type\n" "๐๐š๐—บ๐ž: Name \n" "๐„๐ฑ๐ญ๐ž๐ง๐ฌ๐ข๐—ผ๐ง: File Extension\n" "๐‚๐ซ๐ž๐š๐ญ๐ž๐: Creation Date ๐Œ๐—ผ๐๐ข๐Ÿ๐ข๐ž๐: Last Modified Date\n" "โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—\n\n" "๐–ฒ๐–บ๐—‡๐—Œ - ๐—…๐—‚๐—๐–พ\n" "๐–ข๐–ฎ๐–ด๐–ญ๐–ณ : Count ๐–จ๐–ญ๐–ฏ๐–ด๐–ณ ๐–ณ๐–ธ๐–ฏ๐–ค: Type\n" "๐–ญ๐– ๐–ฌ๐–ค: Type (Name) \n" "๐–ค๐–ท๐–ณ๐–ค๐–ญ๐–ฒ๐–จ๐–ฎ๐–ญ: Type (File Extension)\n" "๐–ข๐–ฑ๐–ค๐– ๐–ณ๐–ค๐–ฃ: Type (Creation Date) ๐–ฌ๐–ฎ๐–ฃ๐–จ๐–ฅ๐–จ๐–ค๐–ฃ: Last Modified Date\n" "๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜\n" "๐–ข๐—ˆ๐—Ž๐—‡๐— : Count ๐–จ๐—‡๐—‰๐—Ž๐— ๐—๐—’๐—‰๐–พ: Type\n" "๐–ญ๐–บ๐—†๐–พ: Type (Name) \n" "๐–ค๐—‘๐—๐–พ๐—‡๐—Œ๐–จ๐—ˆ๐—‡: Type (File Extension)\n" "๐–ข๐—‹๐–พ๐–บ๐—๐–พ๐–ฝ: Type (Creation Date) ๐–ฌ๐—ˆ๐–ฝ๐–จ๐–ฟ๐–จ๐–พ๐–ฝ: Last Modified Date\n" "โจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏ\n\n" "๐—ฆ๐—ฎ๐—ป๐˜€\n" "๐—–๐—ข๐—จ๐—ก๐—ง: Count ๐—œ๐—ก๐—ฃ๐—จ๐—ง ๐—ง๐—ฌ๐—ฃ๐—˜: Type\n" "๐—ก๐—”๐— ๐—˜: Type\n" "๐—˜๐—ซ๐—ง๐—˜๐—ก๐—ฆ๐—œ๐—ข๐—ก: Type\n" "๐—–๐—ฅ๐—˜๐—”๐—ง๐—˜๐——: Type ๐— ๐—ข๐——๐—œ๐—™๐—œ๐—˜๐——: Last Modified Date\n" "โƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒโƒ\n" "๐—–๐—ผ๐˜‚๐—ป๐˜: Count ๐—œ๐—ป๐—ฝ๐˜‚๐˜ ๐˜๐˜†๐—ฝ๐—ฒ: Type\n" "โ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พโ€พ\n" "๐—ก๐—ฎ๐—บ๐—ฒ: Type (Name)\n" "๐—˜๐˜…๐˜๐—ฒ๐—ป๐˜€๐—œ๐—ผ๐—ป: Type (File Extension)\n" "๐—–๐—ฟ๐—ฒ๐—ฎ๐˜๐—ฒ๐—ฑ: Type (Creation Date) ๐— ๐—ผ๐—ฑ๐ข๐—ณ๐ข๐—ฒ๐—ฑ: Last Modified Date \n" "โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—โˆ—\n\n" "๐™Ž๐™–๐™ฃ๐™จ - ๐™ž๐™ฉ๐™–๐™ก๐™ž๐™˜๐™จ\n" "๐˜พ๐™Š๐™๐™‰๐™: Count ๐™„๐™‰๐™‹๐™๐™ ๐™๐™”๐™‹๐™€: Type\n" "๐™‰๐˜ผ๐™ˆ๐™€: Type \n" "๐™€๐™“๐™๐™€๐™‰๐™Ž๐™„๐™Š๐™‰: Type \n" "๐˜พ๐™๐™€๐˜ผ๐™๐™€๐˜ฟ: Type ๐™ˆ๐™Š๐˜ฟ๐™„๐™๐™„๐™€๐˜ฟ: Last Modified Date\n" "โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—โŒ—\n" "๐˜พ๐™ค๐™ช๐™ฃ๐™ฉ: Count ๐™„๐™ฃ๐™ฅ๐™ช๐™ฉ ๐™ฉ๐™ฎ๐™ฅ๐™š: Type\n" "๐™‰๐™–๐™ข๐™š: Type (Name)\n" "๐™€๐™ญ๐™ฉ๐™š๐™ฃ๐™จ๐™ž๐™ค๐™ฃ: Type (File Extension)\n" "๐˜พ๐™ง๐™š๐™–๐™ฉ๐™š๐™จ: Type (Creation Date) ๐™ˆ๐™ค๐™™๐™ž๐™›๐™ž๐™š๐™™: Last Modified Date\n" "๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™๐„™\n\n" "Sแดแด€สŸสŸ Cแด€แด˜s (แด›ษชษดส แด„แด€แด˜s)\n" "แด„แดแดœษดแด›: Count ษชษดแด˜แดœแด› แด›สแด˜แด‡: Type\n" "ษดแด€แดแด‡: Type \n" "แด‡xแด›แด‡ษดsษชแดษด: Type\n" "แด„ส€แด‡แด€แด›แด‡แด…: Type แดแดแด…ษชา“ษชแด‡แด…: Last Modified Date\n" "๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ๐ŠŒ\n\n" "แ‘•Oแ—ฐIแ‘• \n" "แ‘•Oแ‘Œแ‘ŽT: Count Iแ‘Žแ‘ญแ‘ŒT TYแ‘ญแ—ด: Type\n" "แ‘Žแ—ฉแ—ฐแ—ด: Name\n" "แ—ดแ™ญTแ—ดแ‘ŽSIOแ‘Ž: File Extension\n" "แ‘•แ–‡แ—ดแ—ฉTแ—ดแ—ช: Creation Date แ—ฐOแ—ชIแ–ดIแ—ดแ—ช:Last Modified Date\n\n\n" "แขแŽชแšแŽขแŽฌแž \n" "coะผpacั‚ า“onั‚\n" "coฯ…nั‚: Count ฮนnpฯ…ั‚ ั‚ype: Type\n" "๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ๐„ฌ\n" "naะผe: Type coฯ…nั‚ \n" "eั…ั‚enั•ฮนon: Type\n" "creaั‚ed: Type ะผodฮนา“ฮนed: Last Modified Date\n" "โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–\n\n" "cutั” fฯƒnt\n" "cฯƒunt: Count รญnput tั‡pั”: Type\n" "nฮฑmั”: Type (Name)\n" "ั”ั…tั”nั•รญฯƒn: Type (File Extension)\n" "crั”ฮฑtั”d: Type (Creation Date) mฯƒdรญfรญั”d: Last Modified Date \n" "แฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉ\n" "แด„แดแดœษดแด› : Count ษชษดแด˜แดœแด› แด›สแด˜แด‡: Type\n" "ษดแด€แดแด‡: Type (Name)\n" "แด‡xแด›แด‡ษดsษชแดษด: Type (File Extension)\n" "แด„ส€แด‡แด€แด›แด‡แด…: Type (Creation Date) แดแดแด…ษชา“ษชแด‡แด…: Last Modified Date\n" "๊•น๊•น๊•น๊•น๊•น๊•น๊•น๊—ฎ๊—ฎ๊—ฎ๊—ฎ๊—ฎ๊–’๊–’๊–’๊–’๊–’๊–’๊–’\n" "****\n" "แŸแŽพแขแขแŽฌแŽกแขแžแŽชแŽขแŽฌ\n" "แŸแŽพแŒNแŽข: Count แ†NแขแŒแŽข แŽขYแขแŽฌ: Type\n" "NแŽชแŽทแŽฌ: Type (Name)\n" "แŽฌXแŽขแŽฌNแšแ†แŽพN: Type (File Extension)\n" "แŸแŽกแŽฌแŽชแŽขแŽฌแŽ : Type (Creation Date) แŽทแŽพแŽ แ†Fแ†แŽฌแŽ : Last Modified Date\n" "๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊•ป๊–‰\n" "ฤ‹ศศ—แน…แนญ: Count ฤฑแน…ฦฟศ—แนญ แนญสฦฟั”: Type\n" "แน…ังแนƒั”: Type (Name)\n" "ั”ร—แนญั”แน…แนกฤฑศแน…: Type (File Extension)\n" "ฤ‹ัั”ังแนญั”ิ€: Type (Creation Date) แนƒศิ€ฤฑา“ฤฑั”ิ€: Last Modified Date\n" "๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Žแ•ฏแ•ฏแ•ฏแ•ฏแ•ฏแ•ฏ๊˜–๊˜–๊˜–๊˜–๊˜–๊˜–๊˜Œ๊˜Œ๊˜ˆ๊˜ˆ๊˜ˆแ•ฝแ•ฝแ•ฝแ•ฝแ•ฝแ•ฝแ•ฝ\n" "CฮฉUฮ T: Count Iฮ PUT TฮจPฮฃ: Type\n" "ฮ ฮ”Mฮฃ: Type (Name)\n" "ฮฃXTฮฃฮ SIฮฉฮ : Type (File Extension)\n" "CRฮฃฮ”TฮฃD: Type (Creation Date) MฮฉDIา’IฮฃD: Last Modified Date \n" "๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”น๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ท๊”ทแ‘‰แ‘‰แ‘‰แ‘‰แ‘‰แ‘‰โต‚โต‚\n" "แŸแŽพuแแ† : Count แŽฅแแขuแ† แ†แŽฝแขแŽฌ: Type\n" "แแŽชmแŽฌ: Type (Name) \n" "แŽฌxแ†แŽฌแsแŽฅแŽพแ: Type (File Extension)\n" "แŸแ’แŽฌแŽชแ†แŽฌแŽ : Type (Creation Date) mแŽพแŽ แŽฅfแŽฅแŽฌแŽ : Last Modified Date\n" "::\n" "cฬฒฬ…oฬฒฬ…uฬฒฬ…nฬฒฬ…tฬฒฬ… : Count iฬฒฬ…nฬฒฬ…pฬฒฬ…uฬฒฬ…tฬฒฬ… tฬฒฬ…yฬฒฬ…pฬฒฬ…eฬฒฬ…: Type\n" "nฬฒฬ…aฬฒฬ…mฬฒฬ…eฬฒฬ…: Type (Name)\n" "eฬฒฬ…xฬฒฬ…tฬฒฬ…eฬฒฬ…nฬฒฬ…sฬฒฬ…iฬฒฬ…oฬฒฬ…nฬฒฬ…: Type (File Extension)\n" "cฬซrฬซeฬซaฬซtฬซeฬซdฬซ: Type (Creation Date) mฬซoฬซdฬซiฬซfฬซiฬซeฬซdฬซ: Last Modified Date\n" "โตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโตˆโดฐโดฐโดฐโดฐโดฐโดฐโดฐโดฐโดฑโดฐโดฐโตงโตงโตงโตงโตง\n" "Cอ™oอ™uอ™nอ™tอ™ : Count Iอ™nอ™pอ™uอ™tอ™ tอ™yอ™pอ™eอ™: Type\n" "Nอ™aอ™mอ™eอ™: Type (Name)\n" "Eฬถxฬถtฬถeฬถnฬถsฬถiฬถoฬถnฬถ: Type (File Extension)\n" "Cฬถrฬถeฬถaฬถtฬถeฬถdฬถ: Type (Creation Date) Mฬถoฬถdฬถiฬถfฬถiฬถeฬถdฬถ: Last Modified Date\n" "เผ“เผ“เผ“เผ“เผ“เผ“เผ“เผ“เผœเผœเผœเผœเผœเผœเผœเผ›เผ›เผ›เผ›เผ›เผ›เผเผเผเผเผเผเผเผเผžเผžเผžเผžเผžเผถเผถเผถเผถเผถเผถเผถเผถเผถเผถ\n" "Cฬบอ†oฬบอ†uฬบอ†nฬบอ†tฬบอ† : Count Iฬบอ†nฬบอ†pฬบอ†uฬบอ†tฬบอ† tฬบอ†yฬบอ†pฬบอ†eฬบอ†: Type\n" "Nฬบอ†aฬบอ†mฬบอ†eฬบอ†: Type (Name)\n" "Eฬบอ†xฬบอ†tฬบอ†eฬบอ†nฬบอ†sฬบอ†iฬบอ†oฬบอ†nฬบอ†: Type (File Extension)\n" "Cโƒ’Rโƒ’Eโƒ’Aโƒ’Tโƒ’Eโƒ’Dโƒ’: Type (Creation Date) Mโƒ’Oโƒ’Dโƒ’Iโƒ’Fโƒ’Iโƒ’Eโƒ’Dโƒ’: Last Modified Date\n" "เฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเฟบเพฟเพฟเพฟเพฟเพฟเพฟเพฟเพพเพพเพพเพพเพพเพพเพพเฟŽเฟŽเฟเฟเฟ•\n" "CฬŸoฬŸuฬŸnฬŸtฬŸ : Count IฬŸnฬŸpฬŸuฬŸtฬŸ tฬŸyฬŸpฬŸeฬŸ: Type\n" "NฬŸaฬŸmฬŸeฬŸ: Type (Name)\n" "EฬŸxฬŸtฬŸeฬŸnฬŸsฬŸiฬŸoฬŸnฬŸ: Type (File Extension)\n" "Cฬฅอฆrฬฅอฆeฬฅอฆแธอฆtฬฅอฆeฬฅอฆdฬฅอฆ: Type (Creation Date) Mฬˆรถdฬˆรฏfฬˆรฏรซdฬˆ: Last Modified Date\n" "๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น‰๏น๏น๏น๏น๏น๏น๏น๏น\n" "Cอœอกlอœอกoอœอกuอœอกdอœอก Fอœอกoอœอกnอœอกtอœอก\n" "Cอœอกoอœอกuอœอกnอœอกtอœอก : Count Iอœอกnอœอกpอœอกuอœอกtอœอก tอœอกyอœอกpอœอกeอœอก: Type\n" "CอœอกOอœอกUอœอกNอœอกTอœอก : Count IอœอกNอœอกPอœอกUอœอกTอœอก TอœอกYอœอกPอœอกEอœอก: Type\n" "Nอœอกaอœอกmอœอกeอœอก: Type (Name)\n" "Eอœอกxอœอกtอœอกeอœอกnอœอกsอœอกiอœอกoอœอกnอœอก: Type (File Extension)\n" "Cอœอกrอœอกeอœอกaอœอกtอœอกeอœอกdอœอก: Type (Creation Date) Mอœอกoอœอกdอœอกiอœอกfอœอกiอœอกeอœอกdอœอก: Last Modified Date\n" "๐–งน๐–งน๐–งน๐–งน๐–งน๐–งน๐–งน๐–งน๐–งน๐–งž๐–งž๐–งž๐–งž๐–งž๐–ฆน๐–ฆน๐–ฆน๐–ฆน๐–ฆน๐–ฆน๐–ฆน๐–ฆน๐–ฆธ๐–ฆธ๐–ฆธ๐–ฆธ๐–ฆธ๐–ฆ๐–ฆ๐–ฆก๐–ฆก\n" "Cฬคฬˆรถฬคแนณฬˆnฬคฬˆแบ—ฬค : Count รฬคnฬคฬˆpฬคฬˆแนณฬˆแบ—ฬค แบ—ฬครฟฬคpฬคฬˆรซฬค: Type\n" "Nฬคฬˆรคฬคmฬคฬˆรซฬค: Type (Name)\n" "แ‹XTแ‹แแŽฆIแŽงแ: Type (File Extension)\n" "แจRแ‹แ˜Tแ‹แŽ : Type (Creation Date) Mโƒ—oโƒ—dโƒ—iโƒ—fโƒ—iโƒ—eโƒ—dโƒ—: Last Modified Date\n\n" "Cฬบoฬบuฬบnฬบtฬบ : Count Iฬบnฬบpฬบuฬบtฬบ tฬบyฬบpฬบeฬบ: Type\n" "NอŸอžaอŸอžmอŸอžwอข: Type (Name)\n" "EอŸอžxอŸอžtอŸอžeอŸอžnอŸอžsอŸอžiอŸอžoอŸอžnอŸอž: Type (File Extension)\n" "CอŸอžrอŸอžeอŸอžaอŸอžtอŸอžeอŸอždอŸอž: Type (Creation Date) MอŸอžoอŸอždอŸอžiอŸอždอŸอžiอŸอžeอŸอždอŸอž: Last Modified Date\n" "๐‘€ƒ๐‘€ƒ๐‘€ƒ๐‘€ƒ๐‘€„๐‘€„๐‘€„๐‘€ฃ๐‘€ฃ๐‘€ฃ๐‘Š๐‘Š๐‘Š๐‘‰๐‘‰๐‘‰๐‘‹๐‘‹๐‘’๐‘’๐‘’๐‘“๐‘“๐‘”๐‘”๐‘ฃ๐Šบ๐Šบ๐Šบ๐Šพ๐Šพ๐‹€๐‹€๐‘…€๐‘…€๐‘…€ี™แ•\n" "Cอขoอขuอขnอขtอข : Count Iอขnอขpอขuอขtอข tอขyอขpอขeอข: Type\n" "NอŸaอŸmอŸeอŸ: Type (Name)\n" "EอŸxอŸtอŸeอŸnอŸsอŸiอŸoอŸnอŸ: Type (File Extension)\n" "CอŸrอŸeอŸaอŸtอŸeอŸdอŸ: Type (Creation Date) MอŸoอŸdอŸiอŸfอŸiอŸeอŸdอŸ: Last Modified Date\n" "โงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพโงพ\n" "Cฬ oฬ uฬ nฬ tฬ  : Count Iฬ nฬ pฬ uฬ tฬ  tฬ yฬ lฬ eฬ : Type\n" "NอŽaอŽmอŽeอŽ: Type (Name)\n" "Eอ’xอ’tอ’eอ’nอ’sอ’iอ’oอ’nอ’ : Type (File Extension)\n" "Cอ“ฬฝrอ“ฬฝeอ“ฬฝaอ“ฬฝtอ“ฬฝeอ“ฬฝdอ“ฬฝ: Type (Creation Date) Mอ“ฬฝoอ“ฬฝdอ“ฬฝiอ“ฬฝdอ“ฬฝiอ“ฬฝeอ“ฬฝdอ“ฬฝ: Last Modified Date\n" "โง†โง†โง†โง†โง†โง†โง†โงโงโงโง€โง€โง€โง€โงˆโง—โงŸโงŸโงซโงซโงซโงซโงซโงดโงพโงพ\n" "แถœแดผแตแดบแต€ : Count แดตแดบแดพแตแต€ แต€แตžแดพแดฑ: Type\n" "แดบแดฌแดนแดฑ: Type (Name) \n" "แดฑหฃแต€แดฑแดบหขแดตแดผแดบ: Type (File Extension)\n" "แถœแดฟแดฑแดฌแต€แดฑแดฐ: Type (Creation Date) แดนแดผแดฐแดตแถ แดตแดฑแดฐ: Last Modified Date\n\n" "Slyder\n" "๐ถ๐‘œ๐‘ข๐‘›๐‘ก : Count ๐ผ๐‘›๐‘๐‘ข๐‘ก ๐‘ก๐‘ฆ๐‘๐‘’: Type\n" "๐‘๐‘Ž๐‘š๐‘’: Type (Name) \n" "๐ธ๐‘ฅ๐‘ก๐‘’๐‘›๐‘ ๐ผ๐‘œ๐‘›: Type (File Extension)\n" "๐ถ๐‘Ÿ๐‘’๐‘Ž๐‘ก๐‘’๐‘‘: Type (Creation Date) ๐‘€๐‘œ๐‘‘๐ผ๐‘“๐ผ๐‘’๐‘‘: Last Modified Date\n" "โ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃโ‰ฃ\n" "๐‘ช๐’๐’–๐’๐’• : Count ๐‘ฐ๐’๐’‘๐’–๐’• ๐’•๐’š๐’‘๐’†: Type\n" "๐‘ต๐’‚๐’Ž๐’†: Type (Name) \n" "๐‘ฌ๐’™๐’•๐’†๐’๐’”๐‘ฐ๐’๐’: Type (File Extension)\n" "๐‘ช๐’“๐’†๐’‚๐’•๐’†๐’…: Type (Creation Date) ๐‘ด๐’๐’…๐‘ฐ๐’‡๐‘ฐ๐’†๐’…: Last Modified Date\n" "โ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰กโ‰ก\n" "โˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆทโˆถโˆถโˆถโˆถ\n" "coฯ…nั‚ : Count ฮนnpฯ…ั‚ ั‚ype: Type\n" "๊ƒ”๊ฒ๊‚ต๊‘€: Type (Name) \n" "๊‘พ๊‹‹๊“…๊‘พ๊น๊‡˜๊’๊„ฑ๊น: Type (File Extension)อ\n" "๊ธ๊’“๊Ÿ๊‹ซ๊“…๊Ÿ๊•: Type (Creation Date) ๊’๊†‚๊•๊‚‘๊„˜๊‚‘๊Ÿ๊•: Last Modified Date\n\n\n\n" "โŠ โŠ โŠ โŠ โŠกโŠกโŠกโŠกโŠŸโŠŸโŠŸโŠŸโŠžโŠžโŠžโŠž\n" "โ‰โ‰โ‰โ‰โ‰โ‰โ‰”โ‰”โ‰”โ‰›โ‰›โ‰›โ‰›โ‰›โ‰›โ‰›โ‰โ‰โ‰โ‰โ‰Žโ‰Žโ‰Žโ‰Žโ‰Žโ‰กโ‰กโ‰กโ‰ก\n" "โˆฃโˆฃโˆฃโˆฃโˆพโˆพโˆพโˆพโˆฟโˆฟโˆฟโˆฟโˆธโˆธโˆธโˆทโˆทโˆทโˆทโˆทโˆท\n" "โŠœโŠœโŠโŠโŠ•โŠ•โŠ—โŠ—โŠฑโŠฑโŠฑโŠฑโŠฑโŠฐโŠฐโŠฐโŠฐโŠฐโŠนโŠนโŠนโŠนโŠนโŠนโŠนโ‹โ‹โ‹โ‹Žโ‹Žโ‹Ž\n" "โ‹…โ‹…โ‹…โ‹…โ‹…โ‹…โ‹…โ‹…โ‹…โ‹…โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹†โ‹‡โ‹‡โ‹‡โ‹‡โ‹‡โ‹‡โ‹‡โ‹‡โ‹‡โ‹•โ‹•โ‹•โ‹•โ‹•โ‹•โ‹•โ‹•\n" "โ‹–โ‹–โ‹–โ‹–โ‹–โ‹—โ‹—โ‹—โ‹—โ‹˜โ‹˜โ‹™โ‹™โŸจโŸจโŸจโŸฉโŸฉโŸฉโŸ โŸ โŸ โŸ โฆฟโฆฟโฆฟโงซโงซโงซโงซ\n" "โ€ฆโ€ฆโ€ฆโ€ฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโฆโˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โˆ™โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขใƒปใƒปใƒปโ—ฆโ—ฆโ—ฆ\n" "โจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโจฏโงบโงบโงบโงปโงปโงป^^^ยฐยฐยบยบ\n" "โบโบโบโบโบโบโบโบโบโบโบโปโปโปโปโปโปโปโปโปโปโปโปโปโผโผโผโผโผโผโผโผโผโผโ‚Šโ‚Šโ‚Šโ‚Šโ‚Šโ‚Šโ‚Šโ‚Šโ‚Šโ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚‹โ‚Œโ‚Œโ‚Œโ‚Œโ‚Œโ‚Œโ‚Œ\n" "โˆบโˆบโˆบโˆบโˆบโˆบโˆบโ‰‘โ‰‘โ‰‘โ‰‘โ—โ—โ—โ—โ—‹โ—‹โ—‹โ– โ– โ–กโ–กโ˜โ˜โ†•๏ธŽโ†•๏ธŽโ†•๏ธŽ\n" "โŠ˜โŠ˜โŠ™โŠ™โŠšโŠšโŠ›โŠ›โตŒโตŒโตŒโตŒโตŒโตŒโตŒแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแฉแžแžแžแ•แ•แ•แ•แ•แ•แ•แ•แ•แ”ฟแ”ฟแ”ฟแ”ฟแ”ฟแ•€แ•€แ•€แ•€แ•€แ•€แ™ฎแ™ฎแ™ฎแ™ฎแ™ฎแ™ฎ๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊˜Ž๊•€๊•€๊•€๊•€๊˜Œ๊˜Œ๊˜Œ\n" "๊›ท๐– ‡๐– ท๐– ท๐–ข‡๐–ฃ ๐–ฃ ๐–ฃ ๐–ฃซ๐–ฃฏ๐–ค‚๐–ค“๐–คบ๐–ฅ”๐–ฅ”๐–ฅ”๐–ฅ”๐–ฅ‘๐–ฅ‘๐–ฅš๐–ฅ \n" "แจแจแจแแแฉแฉแฉ๐คด๐คด๐คด๐คน๐Š๐Š๐Š›๐Š›\n\n" "๐Ÿ„ฒ๐Ÿ„พ๐Ÿ…„๐Ÿ„ฝ๐Ÿ…ƒ ๐Ÿ…‚๐Ÿ„ท๐Ÿ„พ๐Ÿ…๐Ÿ…ƒ๐Ÿ„ฒ๐Ÿ…„๐Ÿ…ƒ๐Ÿ…‚ ๐Ÿ„ฐ๐Ÿ„ฒ๐Ÿ…ƒ๐Ÿ„ธ๐Ÿ„พ๐Ÿ„ฝ\n\n" "๐‚๐จ๐ฎ๐ง๐ญโ†„\n" "แถœแต’แต˜") subst = "" # You can manually specify the number of replacements by changing the 4th argument result = re.sub(regex, subst, test_str, 0) if result: print (result) # 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