regex?

checks if given value is of type :regex


Parameters

regex? value :any

Returns

  • :logical

Examples

copy
print regex? {/[a-z]+/} ; true print regex? "[a-z]+" ; false print regex? 123 ; false

Related