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

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -