I am very weak in regular expression. I need to check for this three strings ‘name’, ‘fatherName’, mohterName’. After checking I need to initialize these three strings with capital letter, like Name, FatherName, MotherName. And when It founds any capital letter in the string like fatherName it will add an white space before Name.
Can anyone please provide me the regular expressions for this problem. I am working wiht PHP.
Thanks.
Below code solves my problem.
Thanks to everyone those are commented on my post.