Python Regex To VB.net

Posted by user316758 on Stack Overflow See other posts from Stack Overflow or by user316758
Published on 2010-04-27T17:30:05Z Indexed on 2010/04/27 17:43 UTC
Read the original article Hit count: 482

Filed under:
|
|

Hi everyone, I made a program in Python and now I whant to transfert it to vb.net. But I have some difficulties with the vb.net regular expression.... Someone can help me please?

There are my Python regex:

id = re.search('(?<=watch\?v\=)[\w|-]+|(?<=/v/)[\w|-]+', src)
id = id.group(0)

t = re.search('(?<=\&t\=)[\w|-]+', src)
t = t.group()

It's supposed to fin the value of ?v=Value&SomeOtherContent and &t=Value&SomeOtherContent

Thank you

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about python