File tree 2 files changed +40
-15
lines changed
2 files changed +40
-15
lines changed Original file line number Diff line number Diff line change 1
1
JavaVerbalExpressions
2
2
=====================
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
+ ```
4
31
5
32
##Examples
6
33
``` java
7
-
8
34
VerbalExpression testRegex = new VerbalExpression .Builder ()
9
35
.startOfLine()
10
36
.then(" http" )
@@ -22,7 +48,7 @@ String url = "https://www.google.com";
22
48
// the regex
23
49
testRegex. testExact(url); // True
24
50
25
- testRegex. toString(); // Ouputs the regex used:
51
+ testRegex. toString(); // Outputs the regex used:
26
52
// ^(http)(s)?(\:\/\/)(www\.)?([^\ ]*)$
27
53
28
54
VerbalExpression testRegex = new VerbalExpression .Builder ()
@@ -36,9 +62,7 @@ String testString = "defzzz";
36
62
// Use VerbalExpression's test() method to test if parts if the string match the regex
37
63
testRegex. test(testString); // true
38
64
testRegex. testExact(testString); // false
39
-
40
-
41
- ```
65
+ ```
42
66
43
67
## Other implementations
44
68
You can view all implementations on [ VerbalExpressions.github.io] ( http://VerbalExpressions.github.io )
Original file line number Diff line number Diff line change 14
14
<packaging >jar</packaging >
15
15
16
16
<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 >
21
19
22
20
23
21
<properties >
26
24
27
25
28
26
<scm >
29
- <url >https:// github.com/lanwen /JavaVerbalExpressions.git</url >
30
- <
connection >scm:
[email protected] :
lanwen /JavaVerbalExpressions.git</
connection >
31
- <
developerConnection >scm:
[email protected] :
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 >
32
30
</scm >
33
31
34
32
35
33
<licenses >
36
34
<license >
37
35
<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 >
39
37
<distribution >repo</distribution >
40
38
</license >
41
39
</licenses >
42
40
43
41
<developers >
44
42
<developer >
45
- <id >EmilS</id >
43
+ <id >lanwen</id >
44
+ <name >Kirill Merkushev</name >
45
+
46
46
</developer >
47
47
</developers >
48
48
92
92
</plugin >
93
93
</plugins >
94
94
</reporting >
95
+
95
96
</project >
You can’t perform that action at this time.
0 commit comments