first character is a space.

What is the syntax of the regular expression to remove the first character if it is a space?

There is the $trim() function that cuts away leading and trailing blanks. Use it in a "Format value" action.
To replace a leading blank (_ shows the blank) in a regular expression replace: