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?

0

1 Answer 1

7

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

Dim rxPattern As String = "<(?>""[^""]""|'[^']'|[^'"">])*>"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.