I am using pattern matching to apply a template to documents with specific naming conventions.
My doucment name is : PIN_10_FC_Docket#N-00066-05_Tompkins County Family Court_Judge Rowley_
I only to capture anything between the work Docket and _.
In the example above, I want to capture #N-00066-05
the pattern I am using is ....\d+.\D\D.......(.*)(?:[__]) but it returns:
#N-00066-05_Tompkins County Family Court_Judge Rowley_