I have a array in php, a lot of exif data, and I managed to print the data in a foreach loop.
But it shows the data like this:
- FileName
- ISO
- InternalNDFilter
and I want to create spaces like in the code example below.
I am new to regex, I try to understand it, but it's a challenge for me :-)
So I only want to create a space before the uppercase letter IF the next letter is a lowercase, and I don't want a space if the first letter is a uppercase so FileName should be "File Name" and not " File Name" (no space at the beginning)
FileName
//should be File Name
ISO
//Should not change
InternalNDFilter
// Should be Internal ND Filter
I'm not sure if the example of the InternalNDFilter is possible, if that's not possible then it's no problem, the most important part are the examples of the first two (FileName, ISO).
I tried this and this one comes close : regeditor