how to find a string in

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

so now  I need to find this string from the long string, could anyone help me out here
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

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.