What would the regex be for matching the first column header in a csv file?
id,field1,field2
1,n/a,n/a
2,n/a,n/a
...
I just safely want to match id
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityWhat would the regex be for matching the first column header in a csv file?
id,field1,field2
1,n/a,n/a
2,n/a,n/a
...
I just safely want to match id
^([^,]*)/g
If you want to test on https://regex101.com/