{"pattern":"(\\w+)@(\\w+)\\.com","flags":"g","matched":true,"count":2,"matches":[{"match":"[email protected]","index":0,"groups":["ana","acme"],"named":null},{"match":"[email protected]","index":14,"groups":["bob","corp"],"named":null}]}
curl --location --request GET 'https://zylalabs.com/api/13159/regular+expression+tester+api/26705/test+regular+expression' --header 'Authorization: Bearer YOUR_API_KEY'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए Regular Expression Tester API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
(वार्षिक बिलिंग के साथ 2 महीने बचाएँ 🎉)
अग्रणी कंपनियों का भरोसा
Run regular expressions safely, even ones you do not trust. Every pattern is evaluated in an isolated worker with a hard time limit, so catastrophic backtracking is stopped cleanly instead of hanging your servers.
Useful for regular expression playgrounds and teaching tools, validating user supplied patterns before saving them, extracting fields from logs and documents, and debugging patterns in delivery pipelines.
The Test Regular Expression endpoint returns data indicating whether the regex matched the input text, the total match count, and detailed match information including matched text, positions, capture groups, and named groups.
Key fields in the response include "pattern" (the regex used), "flags" (regex flags), "matched" (boolean indicating a match), "count" (number of matches), and "matches" (an array of match details including "match", "index", "groups", and "named").
The response data is structured as a JSON object. It contains the regex pattern and flags, a boolean for match status, a count of matches, and an array of match objects, each detailing the matched text, its position, and any capture or named groups.
The endpoint provides information on whether the regex matched the input, the number of matches found, and detailed match data including the matched text, its position in the input, and any capture or named groups.
उपयोगकर्ता अपनी अनुरोधों को regex पैटर्न, इनपुट टेक्स्ट और वैकल्पिक ध्वजों (जैसे 'g' वैश्विक मेलों के लिए) को GET अनुरोध के क्वेरी पैरामीटर में निर्दिष्ट करके कस्टमाइज़ कर सकते हैं
विशिष्ट उपयोग के मामले में उपयोगकर्ता द्वारा प्रदान किए गए regex पैटर्न को मान्य करना लॉग या दस्तावेजों से विशिष्ट फ़ील्ड निकालना regex पैटर्न को डिबग करना और शैक्षिक उद्देश्यों के लिए इंटरैक्टिव regex प्लेग्राउंड बनाना शामिल है
Users can utilize the returned data by analyzing the "matches" array to extract relevant information, such as using capture groups for further processing or displaying matched results in user interfaces.
Standard data patterns include simple matches like email addresses or phone numbers, as well as more complex patterns involving multiple capture groups. Users should expect variations in match counts based on the input text and regex complexity.