GRETA: The GRETA Regular Expression Template Archive

GRETA可让C++应用具备Perl 5正则表达式的功能,其类能在C++中对字符串进行正则匹配。具有快速回溯引擎、支持Unicode等特点,比.NET/ATL7和boost regex++有性能优势,可免费用于商业,还提供下载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

GRETA gives you all the power of Perl 5 regular expressions in your C++ applications. These easy-to-use classes let you perform regular expression pattern matches on strings in C++.

Features include:

  • Fast backtracking regular expression engine.
  • Separately compiled patterns.
  • Matches against C-style NULL-terminated strings, C++-sytle std::string's, or iterator ranges.
  • Template on iterator type and syntax module.
  • Supports Unicode.
  • Syntax is encapsulated in easily customized/replaced modules. (Perl and POSIX syntax modules included.)
  • Match balanced, nested tags with a recursive pattern. Great for HTML/XML/SOAP processing.
  • Many times faster than the .NET/ATL7 regex classes.
  • Consistently outperforms than boost regex++ on short strings; performs competitively on long strongs (see this page for a detailed comparison).

NOTE: GRETA compiles on VC7, VC7.1 and gcc 3.2. Below, you can find a separate version that compiles on VC6.

Read the GRETA User's Guide

New! GRETA is now available free for commercial use as part of Visual C++ PowerTools. You can find it on GotDotNet (just look for PowerTools).

Download GRETA 2.6.4
Download GRETA 2.6.4 for VC6

GRETA was developed by Eric Niebler, who is unfortunately no longer at Microsoft. It is now being maintained by Ashish Aggarwal and Chris Quirk.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值