I have a collection of files from multiple sources.
Each file contains strings like:
File 1: A) B) C) D) E)
File 2: a) b) c) d) e)
File 3: a. b. c. d. e.
File 4: a- b- c- d- e-
(...)
I know I could code all possible patterns beforehand, but I'd rather make it automatically.
Is it possible to make a program to read the file and figure the pattern? Ex:
File 1: A) B) C) D) E) # => [ABCDE]\)
File 2: a) b) c) d) e) # => [abcde]\)
File 3: a. b. c. d. e. # => [abcde]\.
File 4: a- b- c- d- e- # => [abcde]-