regexp to clean the code using notepad++

Another regular expression to clean povray code with notepad++, replacing color formats “red num green num blue num” to “rgb<num,num,num>”. In the text field Find what: copy and paste the expression:
And in Replace with::
Pressing Replace All clean it the code making it more compact and readable

Leave a Reply

Your email address will not be published. Required fields are marked *