i have a string str = SiteAuditID-Integer-0,ShowSubSection-Boolean-false,ShowSample-Boolean-false,Shorten-Boolean-false,ShowAllQns-Boolean-false,ShowSubSummary-Boolean-false,NullValue-Boolean-false,
this string is divided by "," and then futher dived by "-". what i want to do is to given an input value(dynamically) like ShowSubSummary, i would like to search the whole string for the value ShowSubSummary and if i find a match i would like to replace this substring "ShowSubSummary-Boolean-false" with "ShowSubSummary-Boolean-true(or null)"
So values SiteAuditID,... ShowAllQns,...NullValue are the key values in a substring.
I seem to have a problem with fully comrehending how reg expressions work, can someone help me here.
this string is divided by "," and then futher dived by "-". what i want to do is to given an input value(dynamically) like ShowSubSummary, i would like to search the whole string for the value ShowSubSummary and if i find a match i would like to replace this substring "ShowSubSummary-Boolean-false" with "ShowSubSummary-Boolean-true(or null)"
So values SiteAuditID,... ShowAllQns,...NullValue are the key values in a substring.
I seem to have a problem with fully comrehending how reg expressions work, can someone help me here.