How to find a specific pattern in a string and replace it in C#
I have a term like sub_id() and i would like to change it to "x" from string like below;
$_PR_frsub_id()_tyu --> $_PR_frx_tyu
but problem it sometimes takes some value inside it like sub_id(12546) so it's not easy to replace it with sub_id() we have to define where first bracket starts and ends sub_id(n character)
$_PR_fr+sub_id()+_tyu --> $_PR_frx_tyu