admin管理员组文章数量:1220485
I wonder if there is a comparison between the features of various regex metacharacters in various implementations.
The sort of thing I am looking for is a table like
Language Perl sed
grouping ( ) \( \)
Languages I am interested in are Perl, Sed Java Javascript
I wonder if there is a comparison between the features of various regex metacharacters in various implementations.
The sort of thing I am looking for is a table like
Language Perl sed
grouping ( ) \( \)
Languages I am interested in are Perl, Sed Java Javascript
Share Improve this question asked Sep 25, 2010 at 14:32 justintimejustintime 3,6314 gold badges23 silver badges37 bronze badges2 Answers
Reset to default 14There's a comprehensive comparison page here: Regular Expression Flavor Comparison.
Some languages implement a particular style, so look up your language on that page and determine which column to look at. For example, JavaScript will be under ECMA. For sed it depends on whether you're using UNIX or Linux (from the page):
The sed UNIX tool uses POSIX BRE. Linux usually ships with the GNU implementation, which use "GNU BRE".
A script called txt2regex
allows you to build a regex and shows you the syntax for various flavors.
本文标签: javaComparison of Regex flavoursStack Overflow
版权声明:本文标题:java - Comparison of Regex flavours - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739313173a2157678.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论