Regular Expression to match string starting with a specific word

How do I create a regular expression to match a word at the beginning of a string. We are looking to match stop at the beginning of a string and anything can follow it.

For example the expression should match:

stop
stop random
stopping

Thanks.

Leave a Comment