C++正则表达式引擎 RE2

码农软件 · 软件分类 · 正则表达式工具 · 2019-10-09 11:57:50

软件介绍

RE2 是一个快速、安全和线程友好的C++正则表达式引擎。

例子:

// Copyright 2008 The RE2 Authors.  All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#include<re2/re2.h>
#include<re2/filtered_re2.h>
#includeusing namespace re2;

int main(void) {
FilteredRE2 f;
int id;
f.Add("a.*b.*c", RE2::DefaultOptions, &id);
vectorv;
f.Compile(&v);
vectorids;
f.FirstMatch("abbccc", ids);

if(RE2::FullMatch("axbyc", "a.*b.*c")) {
printf("PASS\n");
return 0;
}
printf("FAIL\n");
return 2;
}

本文地址:https://codercto.com/soft/d/16372.html

Algorithms for Image Processing and Computer Vision

Algorithms for Image Processing and Computer Vision

Parker, J. R. / 2010-12 / 687.00元

A cookbook of algorithms for common image processing applications Thanks to advances in computer hardware and software, algorithms have been developed that support sophisticated image processing with......一起来看看 《Algorithms for Image Processing and Computer Vision》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具