StringBuilder result
= new
StringBuilder
();
Regex r = new Regex ( "/"(?<data>//w+):(?<key>//w+)%(?<value>//w+)/"" , RegexOptions . Compiled );
for( Match m = r . Match ( input ); m . Success ; m = m . NextMatch () )
{
result . Append ( m . Result ( "${data}:${key}*${value}," + Environment . NewLine ) );
}
return result . ToString ();
Regex r = new Regex ( "/"(?<data>//w+):(?<key>//w+)%(?<value>//w+)/"" , RegexOptions . Compiled );
for( Match m = r . Match ( input ); m . Success ; m = m . NextMatch () )
{
result . Append ( m . Result ( "${data}:${key}*${value}," + Environment . NewLine ) );
}
return result . ToString ();