Sign in to follow this  
Followers 0
About_Nothing

parsing

3 posts in this topic

Hi all,

I would like to ask you, what is a proper way to parse this code:

<li><a href="/products/wintaskspro/processlibrary/cc/">cc.exe</a></li>

<li><a href="/products/wintaskspro/processlibrary/cdf/">cdf.exe</a></li>

<li><a href="/products/wintaskspro/processlibrary/cfmon/">cfmon.exe</a></li>

.

.

I need to get all processes, like: cc.exe, cdf.exe, cfmon.exe,....the list is long and still being updated so it would be helpful :o

10x for any ideas! :))

Share this post


Link to post
Share on other sites



Hi all,

I would like to ask you, what is a proper way to parse this code:

<li><a href="/products/wintaskspro/processlibrary/cc/">cc.exe</a></li>

<li><a href="/products/wintaskspro/processlibrary/cdf/">cdf.exe</a></li>

<li><a href="/products/wintaskspro/processlibrary/cfmon/">cfmon.exe</a></li>

.

.

I need to get all processes, like: cc.exe, cdf.exe, cfmon.exe,....the list is long and still being updated so it would be helpful :o

10x for any ideas! :))

Try this:

$str = _
'<li><a href="/products/wintaskspro/processlibrary/cc/">cc.exe</a></li>' & @CRLF & _ 
'<li><a href="/products/wintaskspro/processlibrary/cdf/">cdf.exe</a></li>' & @CRLF & _
'<li><a href="/products/wintaskspro/processlibrary/cfmon/">cfmon.exe</a></li>'

$aRet = StringRegExp($str, '(?:">)([\w\d.]+)', 3)
_ArrayDisplay($aRet)

Best Regards BugFix  

Share this post


Link to post
Share on other sites

Thank you for quick response, works fine.. :)

Best Regards! :o

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0