We're trying to generate user friendly looking report names from SSRS Report filenames, these can't have spaces in the name but it should be possible to generate them from the report names using a regex to scan for caps/nocaps boundaries and alpha/numeric boundaries. However all caps complicates things. For example:
ListOfMembers => List Of Members
Weekly123Report => Weekly 123 Report
MembersOfIEETeam => Members Of IEE Team
So I think this is the minimum ruleset;
(a-z0-9)(A-Z) gets replaced with "$1 $2"
(A-Z)?(A-Z)(a-z) gets replaced with "$1$2 $3"
(A-Za-z)(0-9) gets replaced with "$1 $2"
(0-9)(A-Za-z) gets replaced with "$1 $2"
Is it possible to do this in one fell swoop or will it take multiple passes? Suppose we had a report filename something like:
WeeklyIEEReportWC20090103SortedByDate
I've seen SSRS perform something similar when it deals with series names on charts, it generates them on the fly from the concatenated version.
Any info appreciated! :)