Regular Expressions 101

Community Patterns

1

ā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šā¸žā¸ĸā¸ąā¸ā¸Šā¸™ā¸°ā¸•āš‰ā¸™ā¸•ā¸ąā¸§ā¸Ē⏰⏁⏔ā¸Ēā¸Ŗā¸°āšā¸Ĩ⏰⏧⏪⏪⏓ā¸ĸā¸¸ā¸ā¸•āšŒāš„ā¸—ā¸ĸ

Created¡2026-01-22 01:36
Updated¡2026-01-23 12:42
Flavor¡JavaScript
ā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šā¸žā¸ĸā¸ąā¸ā¸Šā¸™ā¸°ā¸•āš‰ā¸™ (ā¸•āš‰ā¸­ā¸‡ā¸Ąā¸ĩ) ā¸•ā¸Ŗā¸§ā¸ˆā¸•ā¸ąā¸§ā¸Ē⏰⏁⏔ā¸Ē⏺ā¸Ģā¸Ŗā¸ąā¸šā¸Ē⏪⏰⏗ā¸ĩāšˆā¸•āš‰ā¸­ā¸‡ā¸Ąā¸ĩ ā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šā¸ā¸˛ā¸Ŗā¸§ā¸˛ā¸‡ā¸Ēā¸Ŗā¸°āšā¸Ĩ⏰⏧⏪⏪⏓ā¸ĸā¸¸ā¸ā¸•āšŒāš„ā¸—ā¸ĸ ā¸Ģā¸Ąā¸˛ā¸ĸāš€ā¸Ģ⏕⏏ ā¸ā¸˛ā¸Ŗā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šā¸•ā¸ąā¸§ā¸Ēā¸°ā¸ā¸”āšƒā¸™ā¸ ā¸˛ā¸Šā¸˛āš„ā¸—ā¸ĸā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šāš„ā¸”āš‰ā¸ĸā¸˛ā¸āš€ā¸žā¸Ŗā¸˛ā¸°ā¸ ā¸˛ā¸Šā¸˛āš„ā¸—ā¸ĸāš€ā¸›āš‡ā¸™ā¸ ā¸˛ā¸Šā¸˛ā¸—ā¸ĩāšˆāš€ā¸‚ā¸ĩā¸ĸ⏙⏕⏴⏔ āš† ā¸ā¸ąā¸™āš„ā¸Ąāšˆā¸Ąā¸ĩā¸ā¸˛ā¸Ŗāšā¸šāšˆā¸‡ā¸„ā¸ŗā¸­ā¸ĸāšˆā¸˛ā¸‡ā¸Šā¸ąā¸”āš€ā¸ˆā¸™ā¸—ā¸ŗāšƒā¸Ģāš‰ā¸ā¸˛ā¸Ŗā¸­āšˆā¸˛ā¸™ā¸ ā¸˛ā¸Šā¸˛āš„ā¸—ā¸ĸā¸œā¸šāš‰ā¸­āšˆā¸˛ā¸™ā¸•āš‰ā¸­ā¸‡āšƒā¸Šāš‰ā¸„ā¸§ā¸˛ā¸Ąā¸Ģā¸Ąā¸˛ā¸ĸā¸‚ā¸­ā¸‡ā¸„ā¸ŗāšƒā¸™ā¸ā¸˛ā¸Ŗā¸•ā¸ąā¸”ā¸Ēā¸´ā¸™ā¸ā¸˛ā¸Ŗā¸­āšˆā¸˛ā¸™āšā¸šāšˆā¸‡ā¸„ā¸ŗā¸•ā¸˛ā¸Ąā¸„ā¸§ā¸˛ā¸Ąāš€ā¸Ģā¸Ąā¸˛ā¸°ā¸Ēā¸Ąāš€ā¸Šāšˆā¸™ā¸„ā¸ŗā¸§āšˆā¸˛ "⏕⏞⏁ā¸Ĩā¸Ą" ā¸­ā¸˛ā¸ˆā¸­āšˆā¸˛ā¸™āš€ā¸›āš‡ā¸™ "⏕⏞⏁-ā¸Ĩā¸Ą" ā¸āš‡āš„ā¸”āš‰ ā¸Ģā¸Ŗā¸ˇā¸­ā¸­āšˆā¸˛ā¸™āš€ā¸›āš‡ā¸™ "⏕⏞-⏁ā¸Ĩā¸Ą"ā¸āš‡āš„ā¸”āš‰ ā¸”ā¸ąā¸‡ā¸™ā¸ąāš‰ā¸™ā¸ā¸˛ā¸Ŗāš€ā¸‚ā¸ĩā¸ĸ⏙ Regex āš€ā¸žā¸ˇāšˆā¸­ā¸—ā¸ŗā¸ā¸˛ā¸Ŗā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šā¸­ā¸˛ā¸ˆā¸Šāšˆā¸§ā¸ĸāš„ā¸”āš‰ā¸Ŗā¸°ā¸”ā¸ąā¸šā¸Ģ⏙ā¸ļāšˆā¸‡ ā¸­āšˆā¸˛ā¸ˆā¸Ąā¸ĩā¸œā¸´ā¸”ā¸šāš‰ā¸˛ā¸‡ā¸–ā¸šā¸ā¸šāš‰ā¸˛ā¸‡ āšā¸•āšˆā¸āš‡ā¸–ā¸ˇā¸­ā¸§āšˆā¸˛āš€ā¸›āš‡ā¸™āš€ā¸„ā¸Ŗā¸ˇāšˆā¸­ā¸‡ā¸Ąā¸ˇā¸­ā¸—ā¸ĩāšˆāšƒā¸Šāš‰ā¸Šāšˆā¸§ā¸ĸāš€ā¸Ģā¸Ĩā¸ˇā¸­āšƒā¸™ā¸ā¸˛ā¸Ŗā¸•ā¸Ŗā¸§ā¸ˆā¸Ēā¸­ā¸šāš€ā¸žā¸´āšˆā¸Ąāš€ā¸•ā¸´ā¸Ąāš„ā¸”āš‰ 80% ā¸‚ā¸­ā¸‡ā¸„ā¸§ā¸˛ā¸Ąāš€ā¸›āš‡ā¸™āš„ā¸›āšƒā¸”āš‰ā¸āš‡āšā¸Ĩāš‰ā¸§ā¸ā¸ąā¸™ā¸™ā¸°ā¸„ā¸Ŗā¸ąā¸š ā¸Ģā¸§ā¸ąā¸‡ā¸§āšˆā¸˛ā¸ā¸˛ā¸Ŗāš€ā¸‚ā¸ĩā¸ĸā¸™āš€ā¸žā¸´āšˆā¸Ąāš€ā¸•ā¸´ā¸Ąā¸Ēāšˆā¸§ā¸™ā¸™ā¸ĩāš‰ ā¸ˆā¸°ā¸Ąā¸ĩā¸›ā¸Ŗā¸°āš‚ā¸ĸā¸Šā¸™āšŒā¸šāš‰ā¸˛ā¸‡āš„ā¸Ąāšˆā¸Ąā¸˛ā¸ā¸āš‡ā¸™āš‰ā¸­ā¸ĸ
Submitted by ā¸­ā¸˜ā¸´ā¸›ā¸ąā¸•ā¸ĸāšŒ ā¸Ĩāš‰ā¸­ā¸§ā¸‡ā¸¨āšŒā¸‡ā¸˛ā¸Ą
1

Bangla validation regex

Created¡2025-03-26 08:35
Flavor¡JavaScript
āφāĻĒāύāĻžāϰ āϕ⧋āĻĄā§‡āϰ Bangla validation regex āĻļ⧁āϧ⧁āĻŽāĻžāĻ¤ā§āϰ āĻŦāĻžāĻ‚āϞāĻž āχāωāύāĻŋāϕ⧋āĻĄ āϰ⧇āĻžā§āϜ (\u0980-\u09FF) āĻ…āύ⧁āĻŽā§‹āĻĻāύ āĻ•āϰāϛ⧇āĨ¤ āĻ•āĻŋāĻ¨ā§āϤ⧁, "āĻœā§‹āĻŦāĻžā§ŸāĻĻ⧁āϞ āχāϏāϞāĻžāĻŽ"-āĻāϰ āĻŽāĻ§ā§āϝ⧇ āĻ¸ā§āĻĒ⧇āϏ ( ) āĻ°ā§Ÿā§‡āϛ⧇, āϝāĻž āφāĻĒāύāĻžāϰ regex-āĻ āĻ…āύ⧁āĻŽā§‹āĻĻāĻŋāϤ āύ⧟āĨ¤** āφāĻĒāύāĻžāϰ regex-āϟāĻŋ āύāĻŋāĻšā§‡āϰ āĻŽāϤ⧋ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ•āϰ⧁āύ, āϝāĻžāϤ⧇ āĻ¸ā§āĻĒ⧇āϏ āĻāĻŦāĻ‚ āĻŦāĻžāĻ‚āϞāĻž āϚāϰāĻŋāĻ¤ā§āϰ āωāϭ⧟āχ āĻ—ā§āϰāĻšāĻŖāϝ⧋āĻ—ā§āϝ āĻšā§Ÿ: const isBanglaText = (text: string) => { const banglaRegex = /^[\u0980-\u09FF\s]+$/; // āĻŦāĻžāĻ‚āϞāĻž āĻ…āĻ•ā§āώāϰ + āĻ¸ā§āĻĒ⧇āϏ āĻ…āύ⧁āĻŽā§‹āĻĻāĻŋāϤ return banglaRegex.test(text); }; āĻāĻ–āύ "āĻœā§‹āĻŦāĻžā§ŸāĻĻ⧁āϞ āχāϏāϞāĻžāĻŽ" āĻāĻŦāĻ‚ āĻ…āĻ¨ā§āϝāĻžāĻ¨ā§āϝ āĻŦāĻžāĻ‚āϞāĻž āύāĻžāĻŽ āϕ⧋āύ⧋ āϏāĻŽāĻ¸ā§āϝāĻž āĻ›āĻžā§œāĻžāχ āĻ—ā§āϰāĻšāĻŖ āĻ•āϰāĻŦ⧇āĨ¤ 🚀
Submitted by Zobaidul Kazi
1

Regex for Matching Documentation Websites

Created¡2024-11-24 01:45
Flavor¡JavaScript
Regex for Matching Documentation Websites This repository contains a powerful regular expression designed to match URLs that commonly point to documentation-related websites. The regex is optimized for flexibility, covering various terms and URL patterns. Regex Pattern ^.(?:\.|\/)(docs|documentation|help|guide|manual|reference|api|kb|support|resources|wiki|developer|how-to|tutorials|examples|learn|instructions)(?:\.|\/)?.$ Purpose This regex is intended to identify URLs that contain keywords associated with documentation or support websites. It handles common patterns in subdomains, directories, and file paths. Explanation ^.*: Matches any characters at the beginning of the URL (any prefix). (?:\.|\/): Matches either a period (.) or a forward slash (/) preceding the keyword. (docs|documentation|help|guide|manual|...): Matches any of the keywords listed in the group. (?:\.|\/)?: Allows an optional period (.) or forward slash (/) following the keyword. .*$: Matches any characters following the keyword (any suffix). Examples Positive Examples The following URLs should match the regex: https://example.com/docs http://docs.example.com https://example.com/documentation https://sub.domain.com/docs/index.html https://example.com/help https://api.example.com/docs http://example.com/manual/index.html https://wiki.example.com http://developer.example.com/guide https://example.com/tutorials/docs/page https://kb.example.com/docs/tutorial.html https://example.com/resources/documentation/tutorial.html http://example.com/reference/help/documentation.html https://developer.example.com/docs/tutorials/index.html http://support.example.com/documentation/overview https://resources.example.com/docs/v1/tutorial https://example.com/how-to/documentation http://example.com/api/reference/docs https://example.com/reference/v2/index.html http://example.com/docs/resources/api.html Negative Examples The following URLs should not match the regex: https://example.com/documentary http://helpful.example.com https://manuals.example.com http://example.com/references https://example.com/resourceful http://example.com/wiki-books https://apiary.example.com http://example.com/documents http://example.com/documentable https://help-center.example.com http://manual.example.com/docsystem https://example.com/resourcesful http://api.example.comary https://example.net/instructions-v1 http://example.org/learned-tutorial http://example.com/support-center Author Jeremy Georges-Filteau Website Github
Submitted by jgeofil

Community Library Entry

-3

Regular Expression
Created¡2015-06-03 01:35
Flavor¡JavaScript

/
(<)[^<]+?(?=(facebook\.com))[^]+?(\/a>)
/
gmi
Open regex in editor

Description

This will remove all facebook urls from a HTML string

Submitted by Russell Miller