object 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.
- Alphabetic
- By Inheritance
- ContentParsers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class AsDateTime extends AsJodaTime[DateTime]
A content parser with extra options for parsing
DateTimes. - class AsJodaTime[A] extends (String) => A
A content parser with extra options for parsing joda-time models.
- class AsLocalDate extends AsJodaTime[LocalDate]
A content parser with extra options for parsing
LocalDates. - class RegexMatch extends (String) => String
A content parser with extra options for the retrieval of the first match of a regex.
- class RegexMatches extends (String) => Iterator[String]
A content parser with extra options for the retrieval of all the matches of a regex.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asDateTime(formats: String*): AsDateTime
Parses text content as a
DateTimeusing one of a list of formats.Parses text content as a
DateTimeusing one of a list of formats.- formats
the list of possible date formats
- returns
a content parser for parsing text content as a
DateTime.
- val asDouble: (String) => Double
Parses text content as a
Doublevalue. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val asInt: (String) => Int
Parses text content as an
Intvalue. - def asIs[C]: (C) => C
Leaves the extracted content as is.
- def asLocalDate(formats: String*): AsLocalDate
Parses text content as a
LocalDateusing one of a list of formats.Parses text content as a
LocalDateusing one of a list of formats.- formats
the list of possible date formats
- returns
a content parser for parsing text content as a
DateTime.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def regexMatch(regex: Regex): RegexMatch
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
- regex
the regex to match the text content against
- returns
a content parser for matching text content against a regex and returning the first match.
- def regexMatch(regex: String): RegexMatch
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
- regex
the regex to match the text content against
- returns
a content parser for matching text content against a regex and returning the first match.
- def regexMatches(regex: Regex): RegexMatches
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
- regex
the regex to match the text content against
- returns
a content parser for matching text content against a regex and returning all the matches.
- def regexMatches(regex: String): RegexMatches
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
- regex
the regex to match the text content against
- returns
a content parser for matching text content against a regex and returning all the matches.
- def seq[C, A](parser: (C) => A): (TraversableOnce[C]) => TraversableOnce[A]
Lifts a content parser to work on sequences of elements.
Lifts a content parser to work on sequences of elements.
- parser
the content parser to lift
- returns
a content parser for parsing a sequence of elements by applying
parserto each of them.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)