Thanks to visit codestin.com
Credit goes to github.com

Skip to content

S89219/-C--

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re2d

linux codecov Dub version

D language binding of RE2 regex engine.

This is not an officially supported Google product.

Usage

/+ dub.json:
{
  "dependencies": {
     "re2d": "*"
  },
  "libs": ["re2", "c++"]
}
+/
import re2d;

@nogc nothrow pure unittest {
  int i;
  StringPiece s;
  assert(RE2.FullMatch("ルビー💎:1234", `([^:]+):(\d+)`, &s, &i));
  assert(s.toString == "ルビー💎");
  assert(i == 1234);
}

You need to install RE2 library in $LIBRARY_PATH and $LD_LIBRARY_PATH before building.

See re2.d unittests for more runnable examples.

About

D language binding of RE2 regex engine service-specific EDU5061

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • D 96.6%
  • C++ 3.4%