File tree Expand file tree Collapse file tree 2 files changed +40
-15
lines changed Expand file tree Collapse file tree 2 files changed +40
-15
lines changed Original file line number Diff line number Diff line change 11JavaVerbalExpressions
22=====================
3- VerbalExpressions is a Java library that helps to construct difficult regular expressions - ported from the wonderful [ JSVerbalExpressions] ( https://github.com/VerbalExpressions/JSVerbalExpressions ) .
3+ [ <img src =" http://img.shields.io/github/release/VerbalExpressions/JavaVerbalExpressions.svg?style=flat " >] ( https://github.com/VerbalExpressions/JavaVerbalExpressions/releases/latest )
4+ [ <img src =" http://img.shields.io/badge/ported%20from-%20JSVerbalExpressions-orange.svg?style=flat " >] ( https://github.com/VerbalExpressions/JSVerbalExpressions )
5+
6+ VerbalExpressions is a Java library that helps to construct difficult regular expressions.
7+
8+
9+
10+ ##Getting Started
11+
12+ Maven Dependency:
13+
14+ ``` xml
15+ <dependency >
16+ <groupId >ru.lanwen.verbalregex</groupId >
17+ <artifactId >java-verbal-expressions</artifactId >
18+ <version >1.0</version >
19+ </dependency >
20+ ```
21+
22+ You can use * SNAPSHOT* dependency with adding to ` pom.xml ` :
23+ ``` xml
24+ <repositories >
25+ <repository >
26+ <id >ossrh</id >
27+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
28+ </repository >
29+ </repositories >
30+ ```
431
532##Examples
633``` java
7-
834VerbalExpression testRegex = new VerbalExpression .Builder ()
935 .startOfLine()
1036 .then(" http" )
@@ -22,7 +48,7 @@ String url = "https://www.google.com";
2248// the regex
2349testRegex. testExact(url); // True
2450
25- testRegex. toString(); // Ouputs the regex used:
51+ testRegex. toString(); // Outputs the regex used:
2652 // ^(http)(s)?(\:\/\/)(www\.)?([^\ ]*)$
2753
2854VerbalExpression testRegex = new VerbalExpression .Builder ()
@@ -36,9 +62,7 @@ String testString = "defzzz";
3662// Use VerbalExpression's test() method to test if parts if the string match the regex
3763testRegex. test(testString); // true
3864testRegex. testExact(testString); // false
39-
40-
41- ```
65+ ```
4266
4367## Other implementations
4468You can view all implementations on [ VerbalExpressions.github.io] ( http://VerbalExpressions.github.io )
Original file line number Diff line number Diff line change 1414 <packaging >jar</packaging >
1515
1616 <name >JavaVerbalExpressions</name >
17- <description >VerbalExpressions is a Java library that helps to construct difficult regular expressions -
18- ported from the wonderful JSVerbalExpressions
19- </description >
20- <url >https://github.com/lanwen/JavaVerbalExpressions</url >
17+ <description >VerbalExpressions is a Java library that helps to construct difficult regular expressions</description >
18+ <url >https://github.com/VerbalExpressions/JavaVerbalExpressions</url >
2119
2220
2321 <properties >
2624
2725
2826 <scm >
29- <url >https:// github.com/lanwen /JavaVerbalExpressions.git</url >
30- <connection >scm:git@github.com:lanwen /JavaVerbalExpressions.git</connection >
31- <developerConnection >scm:git@github.com:lanwen /JavaVerbalExpressions.git</developerConnection >
27+ <url >git@ github.com:VerbalExpressions /JavaVerbalExpressions.git</url >
28+ <connection >scm:git:git @github.com:VerbalExpressions /JavaVerbalExpressions.git</connection >
29+ <developerConnection >scm:git:git @github.com:VerbalExpressions /JavaVerbalExpressions.git</developerConnection >
3230 </scm >
3331
3432
3533 <licenses >
3634 <license >
3735 <name >The MIT License (MIT)</name >
38- <url >https://github. com/lanwen /JavaVerbalExpressions/blob /master/LICENSE</url >
36+ <url >https://raw.githubusercontent. com/VerbalExpressions /JavaVerbalExpressions/master/LICENSE</url >
3937 <distribution >repo</distribution >
4038 </license >
4139 </licenses >
4240
4341 <developers >
4442 <developer >
45- <id >EmilS</id >
43+ <id >lanwen</id >
44+ <name >Kirill Merkushev</name >
45+ <email >lanwen+github@yandex.ru</email >
4646 </developer >
4747 </developers >
4848
9292 </plugin >
9393 </plugins >
9494 </reporting >
95+
9596</project >
You can’t perform that action at this time.
0 commit comments