I have .txt file and I want to check their delimiter. File may have delimiter tab, pipe(|) and comma
Tab separated file
ID Name Email
1 Test a@test.com
2 testone b@test.com
Comma separated
ID,Name,Email
1,Test,a@test.com
2,testone,b@test.com
For above sample data I want to get delimiter. So for first sample delimiter is tab and for second delimiter is comma(,)