isNotBracketed

fun String.isNotBracketed(startChar: Char = '[', endChar: Char = ']'): Boolean

Returns true if this String is not bracketed by startChar and endChar.

Parameters

startChar

the opening character to check (default '[')

endChar

the closing character to check (default ']')