Jump to content

Recommended Posts

Posted

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! :))

Posted

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  

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
×
×
  • Create New...