Match a word that starts and end with "##" (Special character) in C# regex -


match word starts , end ## (special character) in c# regex

for example: want match

   "##id##"   "##uuid##" 

could please me?

try this:

string s = "lorem ipsum ##text## second [lorem ipsum]. how #are you. it's ok. done. #else now.";           foreach (match match in regex.matches(s, @"\##[^[\]]*\##")) {             messagebox.show(match.value);//here value. } 

Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -