I'm trying to extract part of a filename, everything after " - " and before the " .pdf ":
3114062-123456789.pdf
I'm using this expression:
(?<=-).*(?=.pdf)
It works, except that it always includes a " ; " at the end when I insert it into SharePoint.
How do I get rid of the " ; "