Regex Tester (Matches, Groups, અને Replacement Preview)

ઝડપથી regex test ચલાવવો છે? આ regex tester સાથે paste કરો અને તરત ચકાસો.

Highlighted matches, capture groups અને replacement output એક જ screen પર જુઓ.

તમારો input બ્રાઉઝરમાં સ્થાનિક રીતે પ્રક્રિયા થાય છે અને server પર મોકલાતો નથી.

કેવી રીતે ઉપયોગ કરવો

  1. Pattern દાખલ કરો અને જરૂરી flags (g/i/m) પસંદ કરો.
  2. Source text paste કરો. Auto-run ON હોય તો results તરત update થાય છે.
  3. Locations તપાસવા અને દરેક match પર jump કરવા match list વાપરો.
  4. Captures અને replacement output ચકાસવા 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 સાથે સંપૂર્ણ સમાન હશે તેની ગેરંટી નથી.

FAQ

g/i/m flags શું છે?

Checkboxes થી toggle કરો. (g=global, i=ignore case, m=multiline)

શું replacement પણ test કરી શકું?

હા. Replacement string દાખલ કરો અને Replacement tab તપાસો. $1 જેવી group references સપોર્ટેડ છે.

આ PCRE થી કેવી રીતે અલગ છે?

આ tool JavaScript regular expressions વાપરે છે. Specification ના તફાવતને કારણે એ જ pattern PCRE કરતાં જુદા results આપી શકે છે.

સંબંધિત સાધનો