ContentParsers
An object containing functions for parsing extracted content. They can be used together with the DSL extractor method or by calling map on a HtmlExtractor with them.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ContentParsers.type
Members list
Type members
Classlikes
A content parser with extra options for parsing DateTimes.
A content parser with extra options for parsing DateTimes.
Attributes
- Supertypes
A content parser with extra options for parsing joda-time models.
A content parser with extra options for parsing joda-time models.
Attributes
- Supertypes
-
trait String => Aclass Objecttrait Matchableclass Any
- Known subtypes
-
class AsDateTimeclass AsLocalDate
A content parser with extra options for parsing LocalDates.
A content parser with extra options for parsing LocalDates.
Attributes
- Supertypes
A content parser with extra options for the retrieval of the first match of a regex.
A content parser with extra options for the retrieval of the first match of a regex.
Attributes
- Supertypes
-
trait String => Stringclass Objecttrait Matchableclass Any
A content parser with extra options for the retrieval of all the matches of a regex.
A content parser with extra options for the retrieval of all the matches of a regex.
Attributes
- Supertypes
-
trait String => Iterator[String]class Objecttrait Matchableclass Any
Value members
Concrete methods
Parses text content as a DateTime using one of a list of formats.
Parses text content as a DateTime using one of a list of formats.
Value parameters
- formats
-
the list of possible date formats
Attributes
- Returns
-
a content parser for parsing text content as a
DateTime.
Leaves the extracted content as is.
Leaves the extracted content as is.
Attributes
Parses text content as a LocalDate using one of a list of formats.
Parses text content as a LocalDate using one of a list of formats.
Value parameters
- formats
-
the list of possible date formats
Attributes
- Returns
-
a content parser for parsing text content as a
DateTime.
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
Value parameters
- regex
-
the regex to match the text content against
Attributes
- Returns
-
a content parser for matching text content against a regex and returning the first match.
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
Value parameters
- regex
-
the regex to match the text content against
Attributes
- Returns
-
a content parser for matching text content against a regex and returning the first match.
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
Value parameters
- regex
-
the regex to match the text content against
Attributes
- Returns
-
a content parser for matching text content against a regex and returning all the matches.
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
Value parameters
- regex
-
the regex to match the text content against
Attributes
- Returns
-
a content parser for matching text content against a regex and returning all the matches.
Lifts a content parser to work on sequences of elements.
Lifts a content parser to work on sequences of elements.
Value parameters
- parser
-
the content parser to lift
Attributes
- Returns
-
a content parser for parsing a sequence of elements by applying
parserto each of them.