Regex Tester (Matches, Groups, and Replacement Preview)
Regex test ಅನ್ನು ಬೇಗ ನಡೆಸಬೇಕೇ? ಈ regex tester ಬಳಸಿ paste ಮಾಡಿ ಮತ್ತು ತಕ್ಷಣ verify ಮಾಡಿ.
Highlighted matches, capture groups, ಮತ್ತು replacement output ಅನ್ನು ಒಂದೇ screen ನಲ್ಲಿ ನೋಡಿ.
How to use
- ಒಂದು pattern ನಮೂದಿಸಿ ಮತ್ತು ಬೇಕಾದ flags (g/i/m) ಆಯ್ಕೆ ಮಾಡಿ.
- Source text paste ಮಾಡಿ. Auto-run ON ಇದ್ದರೆ results ತಕ್ಷಣ update ಆಗುತ್ತವೆ.
- Locations ಪರಿಶೀಲಿಸಲು ಮತ್ತು ಪ್ರತಿಯೊಂದು match ಗೆ jump ಮಾಡಲು match list ಬಳಸಿ.
- Captures ಮತ್ತು replacement output ಪರಿಶೀಲಿಸಲು Groups ಮತ್ತು Replacement tabs ಬಳಸಿ.
Examples
Email extraction
Input: Email addresses ಇರುವ text
Output: Highlighted matches ಮತ್ತು start/end positions
key=value replacement
Input: Multi-line key=value text
Output: $1 ಮತ್ತು $2 ಬಳಸಿ replacement output
Log line filter
Input: INFO / WARN / ERROR ಇರುವ log text
Output: m flag ಬಳಸಿ line-based matching
Replacement Cheat Sheet
- $1, $2 ... : capture group references
- $& : whole match
- $` : before match / $' : after match
Note
- ಈ tool JavaScript (ECMAScript) regular expressions ಬಳಸಿ patterns evaluate ಮಾಡುತ್ತದೆ.
- ಕೆಲವು PCRE features (ಉದಾ. atomic groups) ಲಭ್ಯವಿಲ್ಲ.
- JavaScript features ಕೂಡ runtime environment ಪ್ರಕಾರ ಬದಲಾಗಬಹುದು.
- Results PCRE ಗೆ ಒಂದೇ ತರಹ ಇರುತ್ತವೆ ಎಂದು guarantee ಇಲ್ಲ.
FAQ
g/i/m flags ಎಂದರೆ ಏನು?
Checkboxes ಬಳಸಿ ಅವನ್ನು toggle ಮಾಡಿ. (g=global, i=ignore case, m=multiline)
Replacement ನ್ನೂ test ಮಾಡಬಹುದೇ?
ಹೌದು. Replacement string ನಮೂದಿಸಿ ಮತ್ತು Replacement tab ಪರಿಶೀಲಿಸಿ. $1 ಹಾಗಿನ group references support ಇದೆ.
ಇದು PCRE ಗಿಂತ ಹೇಗೆ ಬೇರೆ?
ಈ tool JavaScript regular expressions ಬಳಸುತ್ತದೆ. Spec ವ್ಯತ್ಯಾಸಗಳ ಕಾರಣ ಅದೇ pattern PCRE ಗಿಂತ ಬೇರೆ ಫಲಿತಾಂಶ ನೀಡಬಹುದು.