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
Post a Comment