Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

[RESOLVED] ReGex Woes...

$
0
0
Hello everybody, I am trying to pull data from a PHP Array.

The information is as follows:

PHP Code:

Array
(
    [
status] => Expired
    
[registeredname] => First Last
    
[companyname] => My Company
    
[email] => my@email.com
    
[serviceid] => 1
    
[productid] => 1
    
[productname] => Yearly License
    
[regdate] => 2012-10-29
    
[nextduedate] => 2012-11-29
    
[billingcycle] => Monthly
    
[validdomain] => notimportant
    
[validip] => 127.0.0.1
    
[validdirectory] => /home/hidden/public_html/members
    
[md5hash] => 3afc53edbdba2f2dd51499a88128302d
    
[remotecheck] => 1
)



The code I have attempted was as follows:

PHP Code:

            Dim rgx As New Regex("\[registeredname\] => (.+) " vbLf)
            
Dim matchG As MatchCollection rgx.Matches(src)
            
Dim result As String matchG(0).Groups(1).ToString()
            Return 
result 

However, nothing I do seems to work.

Am I missing something? I have tried vbNewLine, vbLf (what shows up in the expression editor), etc, etc, etc. Even using software such as RegEx Buddy, I have been unable to figure this out.


Thank you in advance.

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>