I've ran into a problem today with regex.
I would like to use a regex expression to turn "Material_Load_Table" and other similair looking sentences into "Material Load Table"
So that would be, replacing the underlines with space and turn the first letter in every word into uppercase.
(I want to solve this in one expression and I dont really want to use loops or anything else)
I've managed somehow to do something similair http://jsfiddle.net/bLm44/2/
but I am not happy with the way the code looks and it is buggy.
Any idea what I can do? Appreciate a quick answer! Ask me if there is anything unclear :)