containsPlaceholder

abstract fun containsPlaceholder(text: String, placeholder: String): Boolean(source)

Checks if the input text contains the pattern %{my-placeholder} or the pattern %{my-placeholder:parameter} where my-placeholder is the placeholder parameter.

Return

true if the text returned with a match and false if it doesn't.

Since

2.0.0

Parameters

text

The text that will be matched to the pattern.

placeholder

The placeholder that will be matched for.