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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -