infix fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.regex(pattern: String): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the given regular expression pattern
is expected to have a match, using a non disjoint search.
Delegates to the RegexPatterns(pattern).
pattern - The pattern which is expected to have a match against the input of the search.
AssertionError - Might throw an AssertionError if the assertion made is not correct.
Return
The AssertionPlant for which the assertion was built to support a fluent API.
infix fun <T : CharSequence> CharSequenceContainsCheckerBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>.regex(pattern: String): AssertionPlant<T>
Finishes the specification of the sophisticated contains assertion where the given regular expression pattern
is expected to have a match (ignoring case), using a non disjoint search.
Delegates to the RegexPatterns(pattern).
pattern - The patterns which is expected to have a match against the input of the search.
AssertionError - Might throw an AssertionError if the assertion made is not correct.
Return
The AssertionPlant for which the assertion was built to support a fluent API.