๐Ÿ› ๏ธUtility Hub
๐Ÿ’ฌFeedback
๐Ÿ  Home

๐Ÿ” Regex Tester

Enter a regular expression pattern and a test string to see all matches highlighted in real time. Handy cheat sheet included.

Regex Pattern
//gi
Flags:
Test String
Match Result
โ€” ํ…์ŠคํŠธ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š” โ€”
Common Patterns
Quick Reference
.์ž„์˜ ๋ฌธ์ž (์ค„๋ฐ”๊ฟˆ ์ œ์™ธ)
\d์ˆซ์ž [0-9]
\w๋‹จ์–ด ๋ฌธ์ž [a-zA-Z0-9_]
\s๊ณต๋ฐฑ ๋ฌธ์ž
^๋ฌธ์ž์—ด ์‹œ์ž‘
$๋ฌธ์ž์—ด ๋
*0ํšŒ ์ด์ƒ ๋ฐ˜๋ณต
+1ํšŒ ์ด์ƒ ๋ฐ˜๋ณต
?0 ๋˜๋Š” 1ํšŒ
{n,m}n~mํšŒ ๋ฐ˜๋ณต
(a|b)a ๋˜๋Š” b
๐Ÿ“ข๊ด‘๊ณ  ์˜์—ญ728 ร— 90

์ด ๋„๊ตฌ๋ฅผ ์นœ๊ตฌ์—๊ฒŒ ๊ณต์œ ํ•˜๊ธฐ

Related Tools

๐Ÿ—‚๏ธJSON Formatter & Viewer
๐Ÿ“Character Counter
๐Ÿ”Password Strength Analyzer
๊ด‘๊ณ  ์˜์—ญ

What is a Regular Expression (Regex) Tester?

A Regular Expression (Regex) is a powerful tool for searching, extracting, and replacing patterns in strings. It is used in every area of development: validating email formats, extracting phone numbers, parsing URLs, analyzing logs, and more. This tester highlights matched portions of the test string in real time as you type, and counts the number of matches. It supports the major flags โ€” g (global), i (case-insensitive), m (multiline), s (dotAll) โ€” and includes a cheat sheet of common patterns for emails, phone numbers, URLs, hex colors, and more.

Common Use Cases

โœ‰๏ธ
Email Validation
Test and refine email validation patterns for sign-up forms and catch edge cases instantly.
๐Ÿ“‹
Log Parsing
Build patterns to extract error codes, IP addresses, and timestamps from server logs.
๐Ÿ”„
String Replacement
Verify patterns before using them in replace() operations to avoid unintended substitutions.
๐Ÿ”
Data Extraction
Extract specifically formatted values from CSV or raw text during data preprocessing.

How to Use

  1. 1
    Enter Pattern
    Type your regex directly in the /pattern/ field, or click any item in the cheat sheet sidebar to instantly load a common pattern like email, phone number, or URL.
  2. 2
    Select Flags
    Toggle g (global search), i (case-insensitive), m (multiline), or s (dotAll โ€” dot matches newlines) to fine-tune matching behavior.
  3. 3
    Type Test String
    Enter your test text in the middle editor. Matched portions are instantly highlighted in yellow and the total match count updates in real time.
  4. 4
    Review & Apply
    Check the matched token list in the result area below, then copy your validated pattern directly into JavaScript code using test(), match(), or replace().

Frequently Asked Questions