About_Nothing Posted January 3, 2009 Posted January 3, 2009 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 10x for any ideas! )
BugFix Posted January 3, 2009 Posted January 3, 2009 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 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
About_Nothing Posted January 3, 2009 Author Posted January 3, 2009 Thank you for quick response, works fine.. Best Regards!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now