Exclude emacs lockfiles from synching

When editing a file e.g.

file.txt

emacs creates a corresponding lockfile:

.#file.txt

The lockfile gets automatically deleted after the file has been saved.

Now I want to exclude all files that begin with “.#” from synching.

I added the most obvious matching pattern in the .sync-exclude.lst:

.#*

but it does not work. Neither do regular expressions like:

^\.\#
^\\.\\#

Any suggestions?

I know it has been a long time. But I think the following worked for me.

\#*

Nevermind, it did not work.