Skip to content
DevToolKit

สรุป Regex

สรุป Regexออนไลน์ฟรีในเบราว์เซอร์ ประมวลผลในเครื่องรับประกันความเป็นส่วนตัว อินเทอร์เฟซใช้งานง่ายพร้อม preview เรียลไทม์ รองรับหลายรูปแบบและตัวเลือก

Search Reference

49 of 49 tokens
.
Any character

Matches any single character except newline (unless s flag is set).

\d
Digit

Matches any digit character (0-9). Equivalent to [0-9].

\D
Non-digit

Matches any character that is not a digit. Equivalent to [^0-9].

\w
Word character

Matches any alphanumeric character plus underscore. Equivalent to [a-zA-Z0-9_].

\W
Non-word character

Matches any character that is not a word character. Equivalent to [^a-zA-Z0-9_].

\s
Whitespace

Matches any whitespace character: space, tab, newline, carriage return, form feed.

\S
Non-whitespace

Matches any character that is not whitespace.

[abc]
Character set

Matches any one of the characters inside the brackets.

[^abc]
Negated set

Matches any character NOT inside the brackets.

[a-z]
Character range

Matches any character in the specified range (inclusive).

[a-zA-Z]
Combined range

Matches any uppercase or lowercase letter using combined ranges.

[0-9a-fA-F]
Hex digit range

Matches hexadecimal characters by combining digit and letter ranges.

^
Start of string

Matches the start of a string (or line in multiline mode).

$
End of string

Matches the end of a string (or line in multiline mode).

\b
Word boundary

Matches the position between a word character and a non-word character.

\B
Non-word boundary

Matches any position that is NOT a word boundary.

*
Zero or more

Matches the preceding element zero or more times (greedy).

+
One or more

Matches the preceding element one or more times (greedy).

?
Zero or one

Matches the preceding element zero or one time (optional).

{n}
Exactly n

Matches the preceding element exactly n times.

{n,}
n or more

Matches the preceding element at least n times (greedy).

{n,m}
Between n and m

Matches the preceding element between n and m times (inclusive, greedy).

*?
Lazy zero or more

Matches zero or more times, but as few as possible (lazy/non-greedy).

+?
Lazy one or more

Matches one or more times, but as few as possible (lazy/non-greedy).

??
Lazy zero or one

Matches zero or one time, preferring zero (lazy/non-greedy).

(abc)
Capturing group

Groups multiple tokens together and captures the matched text for back-referencing.

(?:abc)
Non-capturing group

Groups tokens together without capturing. Useful for applying quantifiers to groups.

(?<name>abc)
Named group

Captures the matched text and assigns it a name for easier reference.

\1
Backreference

Matches the same text as previously captured by the nth capturing group.

(a|b)
Group alternation

Captures one alternative from inside a group. Combines grouping with alternation.

|
Alternation (OR)

Matches the expression before or after the pipe. Acts as a boolean OR.

\\
Escaped backslash

Matches a literal backslash character.

\n
Newline

Matches a line feed character (LF, U+000A).

\t
Tab

Matches a horizontal tab character (U+0009).

\r
Carriage return

Matches a carriage return character (CR, U+000D).

\.
Escaped dot

Matches a literal period/dot character.

\^
Escaped caret

Matches a literal caret character.

\$
Escaped dollar

Matches a literal dollar sign character.

\(
Escaped parenthesis

Matches a literal opening parenthesis.

g
Global

Find all matches rather than stopping after the first match.

i
Case-insensitive

Makes the entire pattern case-insensitive.

m
Multiline

Makes ^ and $ match the start/end of each line rather than the whole string.

s
Dotall (single-line)

Makes the dot (.) match newline characters as well.

u
Unicode

Enables full Unicode matching. Required for proper emoji and surrogate pair handling.

y
Sticky

Matches only at the index indicated by the lastIndex property. Does not search forward.

(?=abc)
Positive lookahead

Asserts that what follows the current position matches the pattern, without consuming characters.

(?!abc)
Negative lookahead

Asserts that what follows the current position does NOT match the pattern.

(?<=abc)
Positive lookbehind

Asserts that what precedes the current position matches the pattern, without consuming characters.

(?<!abc)
Negative lookbehind

Asserts that what precedes the current position does NOT match the pattern.

Live Sandbox

//g
Flags
No matches found

Common Patterns

Was this tool helpful?

วิธีใช้

วิธีใช้สรุป Regexด้วย DevToolkit:

  1. ป้อนข้อมูล: กรอกข้อมูลในช่องอินพุต วางข้อความ หรือลากไฟล์มาวาง เครื่องมือรองรับหลายรูปแบบ
  2. ตั้งค่า: ปรับตัวเลือกและพารามิเตอร์ตามต้องการ แต่ละตัวเลือกมีค่าเริ่มต้นที่เหมาะสม
  3. ประมวลผล: กดปุ่มดำเนินการ ผลลัพธ์แสดงทันทีในเบราว์เซอร์ ทำงานด้วย JavaScript ไม่ต้องรอเซิร์ฟเวอร์
  4. ใช้ผลลัพธ์: คัดลอกไปคลิปบอร์ด ดาวน์โหลดเป็นไฟล์ หรือใช้ต่อในเครื่องมืออื่น

เครื่องมือสรุป Regexของ DevToolkit ทำงานทั้งหมดฝั่งไคลเอนต์ (client-side) ผ่าน JavaScript ไม่มีข้อมูลถูกส่งไปเซิร์ฟเวอร์ ไฟล์ของคุณไม่ออกจากอุปกรณ์ ให้ความเป็นส่วนตัวสูงสุด เหมาะสำหรับทั้งการใช้งานส่วนตัวและงานมืออาชีพ

เกี่ยวกับเครื่องมือนี้

เครื่องมือสรุป Regexของ DevToolkit เป็นเครื่องมือออนไลน์ที่ทำงานทั้งหมดฝั่งไคลเอนต์ (client-side) ในเบราว์เซอร์ ไม่ต้องติดตั้งซอฟต์แวร์เพิ่มเติม ไม่ต้องสร้างบัญชี และไม่มีข้อมูลถูกส่งไปเซิร์ฟเวอร์ ให้ความเป็นส่วนตัวสูงสุด

เครื่องมือนี้อยู่ในหมวดอ้างอิงของ DevToolkit ออกแบบมาสำหรับทั้งผู้เริ่มต้นและมืออาชีพ อินเทอร์เฟซใช้งานง่าย ให้ผลลัพธ์ทันทีแบบเรียลไทม์ รองรับ Unicode ทุกภาษารวมทั้งภาษาไทย เหมาะสำหรับการทำงานในทุกอุตสาหกรรม

DevToolkit มีเครื่องมือออนไลน์มากกว่า 290 รายการ ทุกเครื่องมือทำงานในเบราว์เซอร์โดยไม่อัปโหลดข้อมูล ใช้ได้ฟรีไม่จำกัด ไม่มีลายน้ำ ไม่ต้องลงทะเบียน อินเทอร์เฟซปรับขนาดตามหน้าจอ ทำงานบนเดสก์ท็อป แท็บเล็ต และมือถือ

ทำไมต้องใช้เครื่องมือนี้

เหตุผลในการใช้สรุป Regexของ DevToolkit:

  • ฟรีสมบูรณ์: ไม่มีค่าใช้จ่าย ไม่มีลายน้ำ ไม่จำกัดการใช้งาน ไม่ต้องลงทะเบียนหรือสร้างบัญชี
  • ความเป็นส่วนตัว: ประมวลผลทั้งหมดในเบราว์เซอร์ ข้อมูลไม่ถูกส่งไปเซิร์ฟเวอร์ เหมาะสำหรับข้อมูลลับ
  • ผลลัพธ์ทันที: ไม่ต้องรอคิวเซิร์ฟเวอร์ ประมวลผลและแสดงผลทันทีในเบราว์เซอร์ ประหยัดเวลา
  • ไม่ต้องติดตั้ง: ใช้ได้ทันทีจากเบราว์เซอร์ ไม่ต้องดาวน์โหลดหรือติดตั้งซอฟต์แวร์ใดๆ
  • ทุกอุปกรณ์: อินเทอร์เฟซ responsive ทำงานบนเดสก์ท็อป แท็บเล็ต และมือถือ ทั้ง Android และ iOS
  • เครื่องมือครบครัน: DevToolkit มีมากกว่า 290 เครื่องมือ ครอบคลุมการแปลงไฟล์ การพัฒนา ความปลอดภัย และอื่นๆ

คำถามที่พบบ่อย

จุดเด่นหลักของสรุป Regexเมื่อเทียบกับเครื่องมืออื่นคืออะไร?
สรุป Regexประมวลผลข้อมูลทั้งหมดในเบราว์เซอร์โดยไม่ส่งข้อมูลไปยังเซิร์ฟเวอร์ อินเทอร์เฟซออกแบบมาให้ใช้งานง่ายพร้อม preview แบบเรียลไทม์ ผลลัพธ์สามารถดาวน์โหลดหรือคัดลอกไปยัง clipboard ได้ทันที
การประมวลผลของสรุป Regexทำงานอย่างไร?
Chrome และ Firefox ให้ประสิทธิภาพดีที่สุดสำหรับสรุป Regexด้วยการรองรับ WebAssembly ที่เหนือกว่า Safari และ Edge ก็ใช้งานได้เต็มรูปแบบ อัปเดตเบราว์เซอร์เป็น เวอร์ชันล่าสุดเพื่อเข้าถึงทุกฟีเจอร์และประสิทธิภาพสูงสุด
สรุป Regexรองรับรูปแบบ input หลากหลายหรือไม่?
ไม่มีข้อจำกัดการใช้งานสรุป Regex เนื่องจากการประมวลผลเกิดขึ้นในอุปกรณ์โดยไม่เกี่ยวข้อง กับเซิร์ฟเวอร์ ไม่มีโควตาหรือข้อจำกัดจำนวนครั้ง ใช้งานได้ไม่จำกัดตลอดเวลา โดยไม่ต้องสมัครสมาชิก
สรุป Regexประมวลผลเร็วแค่ไหน?
อินเทอร์เฟซของสรุป Regexออกแบบมาให้ใช้งานง่ายทั้งสำหรับมือใหม่และมืออาชีพ Preview แบบเรียลไทม์แสดงการเปลี่ยนแปลงทันทีเมื่อปรับพารามิเตอร์ บันทึกการตั้งค่าผ่าน URL ของหน้า
วิธีรายงานปัญหาเกี่ยวกับสรุป Regexทำอย่างไร?
หากพบปัญหาในการใช้สรุป Regex ใช้ widget feedback ที่มุมขวาล่างของหน้าเพื่อรายงาน ระบุขั้นตอนการทำซ้ำ เบราว์เซอร์ที่ใช้ และข้อความ error ถ้ามี ทีมพัฒนา จะตรวจสอบรายงานและแก้ไขปัญหาโดยเร็วที่สุด