how to find a string in vb.net

I have long string with multi line of text. This text contains
a special tag string with format "PropertyTag[]".
In between "[", "]" any number of characters can come for example
PropertyTag[1607|5656]

so now  I need to find this string from the long string, could anyone help me out here
ziorinfoAsked:
Who is Participating?
 
käµfm³d 👽Commented:
Try this:

Imports System.Text.RegularExpressions

...

Dim m As Match = Regex.Match(input_string, "PropertyTag\[[^\]]+\]")
Dim propTag As String = String.Empty

If m.Success Then
    propTag = m.Value
End If

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.