RegexSearcher

Represents a Searcher which evaluates the matches of a given regular expression on the input of the search.

It performs a non-disjoint search, meaning searching 'aa?' in 'aaaa' has 4 hits.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun search(searchIn: CharSequence, searchFor: Regex): Int

Searches in the given searchIn for the given searchFor, using its toString implementation, and returns the number of occurrences.