Advertisement
Guest User

Regex test

a guest
Oct 18th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.27 KB | None | 0 0
  1. Dim Pattern As String = "(?>a(?<STACK>)|b(?<-STACK>))*(?(STACK)(?!))" '"<div>(?><div>(?<DEPTH>)|</div>(?<-DEPTH>)|.?)*(?(DEPTH)(?!))</div>"
  2.  
  3. Dim Regex As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex(Pattern, &H0)
  4.  
  5. MsgBox(Regex.IsMatch("aba"))
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement