We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97abc3 commit 73282aaCopy full SHA for 73282aa
README.md
@@ -19,6 +19,17 @@ or use static method
19
````java
20
String followers = Extractors.on(baseHtml).extract(selector("div.followers")).with(regex("\\d+")).asString();
21
````
22
+more method
23
+
24
+````
25
+ String year = Extractors.on("<div> Talk is cheap. Show me the code. - Fri, 25 Aug 2000 </div>")
26
+ .extract(selector("div")) // extract with selector
27
+ .filter(value -> value.trim()) // trim result
28
+ .with(regex("20\\d{2}")) // get year with regex
29
+ .filter(value -> "from " + value) // append 'form' string
30
+ .asString();
31
+ Assert.assertEquals("from 2000", year);
32
33
34
###extract data to map
35
0 commit comments