case class RegexValidator(pattern: String, mode: String = "full", exclude: Boolean = false, caseInsensitive: Boolean = true) extends Product with Serializable
Regex-based span filter for post-processing entity extraction.
- pattern
The regex pattern as a string or compiled Regex
- mode
Match mode: "full" for fullmatch, "partial" for search
- exclude
If true, inverts the match result
- caseInsensitive
If true, performs case-insensitive matching
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RegexValidator
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
RegexValidator(pattern: String, mode: String = "full", exclude: Boolean = false, caseInsensitive: Boolean = true)
- pattern
The regex pattern as a string or compiled Regex
- mode
Match mode: "full" for fullmatch, "partial" for search
- exclude
If true, inverts the match result
- caseInsensitive
If true, performs case-insensitive matching
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 apply(text: String): Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val caseInsensitive: Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exclude: Boolean
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mode: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pattern: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
validate(text: String): Boolean
Validates text against the regex pattern.
Validates text against the regex pattern.
- text
The text to validate
- returns
true if validation passes, false otherwise
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()