beforeText

abstract var beforeText: RegExp(source)

This rule will only execute if the text before the cursor matches this regular expression.

Online Documentation