bash if string does not start with

C++
Just appreciate solution using "" regex for string ending with slash:
if[[ "some_string" != starting_string* ]]; then ...//some code
Source

Also in C++: