Highlight certain words in Text

@russian-dima if you want to directly insert a variable use this code

new RegExp( '\\/variable\\:\\w*$' )

You’re essentially creating a new RegExp object.