Improved cleanup regex and number list

- Improved the regex to clean extra lines from bash script.
- List 1,2,3 now handles bullet items correctly by removing them before
prepending numbers to the ordered list.