tags:

views:

86

answers:

1

In the middle of attaching a Google Custom Search Engine onto my page,

I have a string which I would declare in C# as

String rxPattern = "<(?>\"[^\"]\"|'[^']'|[^'\">])*>";

How do I convert it to a string in VB? I mean store the same value into the string variable rxPattern using VB/VB.NET?

+7  A: 

Replace your \" with "" (double-double quotes) and get rid of the semi-colon:

Dim rxPattern As String = "<(?>""[^""]""|'[^']'|[^'"">])*>"
Dan Tao