re2d 0.1.0
RE2 for D
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
re2d
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.
- 0.1.0 released 4 years ago
- google/re2d
- Apache 2.0
- Copyright Β© 2021, Shigeki Karita, RE2 authors
- Authors:
- Dependencies:
- none
- Versions:
- 
						
 Show all 4 versions0.1.0 2021-Aug-17 ~master 2023-Aug-06 ~ShigekiKarita-ubuntu-latest 2023-Aug-06 ~ShigekiKarita-gdc 2023-Aug-06 
- Download Stats:
- 
						- 
								0 downloads today 
- 
								3 downloads this week 
- 
								7 downloads this month 
- 
								22 downloads total 
 
- 
								
- Score:
- 1.8
- Short URL:
- re2d.dub.pm