the solution to this is probably quite simple, but i'm not very good with regular expressions. i have this method
how do i use regular expressions to remove all occurences of 'target' from 'before'?
NB - there may be anywhere between zero and infinite occurences of target in before
Code:
public static string removeString(string target, string before)
{
return after;//no target in my before
}
how do i use regular expressions to remove all occurences of 'target' from 'before'?
NB - there may be anywhere between zero and infinite occurences of target in before