#Regex to convert Ratings ENUM into a CSV
Works for Notepad++ regex which is POSIXy.
Assume data looks like this:
enumtype.def:
0 " " Not allocated
1 "AAA " The obligor's capacity to meet its financial commitment on the obligation is extremely strong.
2 "AA+ " The obligor's capacity to meet its financial commitment on the obligation is very strong.
3 "AA " The obligor's capacity to meet its financial commitment on the obligation is very strong.
4 "AA- " The obligor's capacity to meet its financial commitment on the obligation is very strong.
Find what: (\d+)\s+(\".*\")\s+(.*)
Replace with: \1,\2,"\3"