Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c# Regex similar wor

string s= "This island is a colony; however,it is autonomous and receives no orders from the mother country, autonomy, N.";;
string pattern="autonomous";
Regex r=new Regex(@"(?!"+pattern+")"+pattern.Substring(0,pattern.Length/2)+@".*?");
r.Replace(s,".");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Regex #similar #wor
ADD COMMENT
Topic
Name
6+4 =