Check the string starts with

Check the string starts with

  
Hello,

I am having the session variable username. I need to check if the username starts with ABC\ (firstfourletters) then do some action. For checking that do I need to use Regex or any other commands will help me with this.

Thanks
I V,

You can use the Index function: Index(Session.Username,"ABC\") = 0.

Cheers,
Tiago Simões