regex-translator - npm
文章推薦指數: 80 %
Convert a Regular Expression from one flavour to another.. Latest version: 0.2.8, last published: 5 months ago. Start using regex-translator ...
regex-translator0.2.8 • Public • Published5monthsagoReadmeExploreBETA8Dependencies2Dependents7Versions
regex-translator
ConvertaRegularExpressionfromoneflavourtoanother.
TableofContents
Background
Install
Usage
CLI
API
Contributing
License
Background
Iloveregex!It'sextremelyusefulandIpracticeitnighreligiouslybutthere'sacatch:regularexpressionshaveneverhadasingular,definitivestandardthathasreallytakenoffand,asaresult,eachregexenginehasitsownslightlydifferentvariationonthecoresyntax.Forexample:PCREhasthemostfeaturesandistheflavourmostcommonlyusedinuser-facingapplicationsbutIprimarilyprograminJavascriptnowadayswhichhasitsownstandardforregex(ECMA)andIuseVimasmytexteditorwhichusesitsownhyper-idiomaticversionofregularexpressions!Eventually,IgottiredoftheheadachesfrommanuallyconvertingbetweenregexflavourssoIcreatedthis,aNodeJSpackageandCLIapplicationforconvertingbetweenregexflavourswithrelativeease.regex-translatorlaysasimple,data-drivenfoundationwhichcanbeexpandedupontoonedaybeabletoperfectlyinterpolatebetweenallregexflavours.Initscurrentstate,it'snotperfectbutithasprovedtobeeffectiveformyneeds,convertingbetweensomeofthemoremajorregexflavours.
SupportedRegexFlavours
ID
"Standard"
Uses
basic
Posix.2"BasicRegularExpression"(BRE)
grep,edandC(
延伸文章資訊
- 1regex101: build, test, and debug regex
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python...
- 2Translate text into regular expression - MATLAB regexptranslate
newStr = regexptranslate( op , str ) translates str into a regular expression and returns the res...
- 3Regular expression to English [closed] - regex - Stack Overflow
Given a regular expression, is there a library or webservice which will give the human/non-progra...
- 4Regular Expressions Clearly Explained with Examples
- 5Regular expressions - memoQ Documentation
Regular expressions are a powerful means for finding character sequences in text. In memoQ, they ...