Yes, it is possible. Simply analyze what is needed:

What can any character before the last one be? Well, it can be any single character except for a semi-colon, or a backslash directly followed by...