try this. the ? character can be used to specify a lazy search, where it'll return the shortest possible match. the + character specifies 1 character or more, whereas the * character specifies 0 characters or more.
vb Code:
Dim rx As New Regex("\[[A-Za-z]+?\]")




Reply With Quote