Regex Tester (Matches, Groups, மற்றும் Replacement Preview)

Regex test-ஐ வேகமாக இயக்க வேண்டுமா? இந்த regex tester-இல் paste செய்து உடனே verify செய்யுங்கள்.

Highlighted matches, capture groups, மற்றும் replacement output-ஐ ஒரே screen-இல் பார்க்கலாம்.

உங்கள் input browser-இலேயே local ஆக process செய்யப்படுகிறது; server-க்கு அனுப்பப்படாது.

பயன்படுத்துவது எப்படி

  1. Pattern-ஐ உள்ளிட்டு தேவையான flags (g/i/m)-ஐத் தேர்வு செய்யுங்கள்.
  2. Source text-ஐ paste செய்யுங்கள். Auto-run ON ஆக இருந்தால் result உடனே update ஆகும்.
  3. Locations-ஐப் பார்க்கவும் ஒவ்வொரு match-க்கும் jump செய்யவும் match list-ஐப் பயன்படுத்துங்கள்.
  4. Captures மற்றும் replacement output-ஐ verify செய்ய Groups மற்றும் Replacement tabs-ஐப் பயன்படுத்துங்கள்.

எடுத்துக்காட்டுகள்

Email extraction

உள்ளீடு: Email addresses உள்ள text

வெளியீடு: Highlighted matches மற்றும் start/end positions

key=value replacement

உள்ளீடு: Multi-line key=value text

வெளியீடு: $1 மற்றும் $2 பயன்படுத்திய replacement output

Log line filter

உள்ளீடு: INFO / WARN / ERROR உள்ள log text

வெளியீடு: m flag உடன் line-based matching

Replacement Cheat Sheet

  • $1, $2 ... : capture group references
  • $& : whole match
  • $` : before match / $' : after match

குறிப்பு

  • இந்த tool patterns-ஐ JavaScript (ECMAScript) regular expressions-ஆக evaluate செய்கிறது.
  • சில PCRE features (உதா. atomic groups) கிடைக்காது.
  • JavaScript features கூட runtime environment-ஐப் பொறுத்து மாறலாம்.
  • Results PCRE-க்கு முழுமையாக ஒரே மாதிரி இருக்கும் என்று உத்தரவாதம் இல்லை.

அடிக்கடி கேட்கப்படும் கேள்விகள்

g/i/m flags என்ன?

Checkboxes மூலம் அவற்றை மாற்றலாம். (g=global, i=ignore case, m=multiline)

Replacement-ஐயும் test செய்யலாமா?

ஆம். Replacement string-ஐ உள்ளிட்டு Replacement tab-ஐப் பார்க்கவும். $1 போன்ற group references ஆதரிக்கப்படுகின்றன.

இது PCRE-இல் இருந்து எப்படி வேறுபடுகிறது?

இந்த tool JavaScript regular expressions-ஐப் பயன்படுத்துகிறது. Spec வேறுபாடுகள் காரணமாக அதே pattern PCRE-ஐ விட வேறு result தரலாம்.

தொடர்புடைய கருவிகள்