<div dir="ltr">I'm having to switch my data source from Oracle Directory Server to Active Directory and adapt to different conventions in how data are represented. Some data represented by simple named attributes will now have to be deciphered from group names, and the group names replace spaces with underscores. I can extract the name (with underscores) from the memberOf values of appropriately chosen group names, for example for the campus affiliations:<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><ValueMap<br>     <ReturnValue> $1</ReturnValue><br>     <SourceValue ignoreCase="true">^CN=(.*?),OU=Campus,(.*)</SourceValue><br></ValueMap></blockquote></div><div>But how might I easily replace underscores to recover the canonical institutional names with spaces?</div><div><br></div><div>David Bantz</div><div>U Alaska</div></div>