Console output looks something like below:
User_Group$ls
root
-------------------------------------------------------
copying the above data to a file, it is copied like below:
User_Group$ls�[0m�[01;34mroot�[0m
trying to parse the data and remove "�[0m�[01;34mroot�[0m" I didn't find any match in the ANSII color formats
Could someone suggest some regex operation to remove the above characters and get only "root"