Maik007 0 Posted August 26, 2014 Report Share Posted August 26, 2014 Hello,I have this source code (under the post) and want now read the word last the sign "|" and want only extract the word "Hgoysiwhich"!Can someone help me, how can i make this? Here ist full sourcecode: <html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><script defer="defer" src="CaptchaSniper127.0.0.1-Dateien/sf_main.htm"></script><script src="CaptchaSniper127.0.0.1-Dateien/sf_preloader.jsp" type="text/javascript"></script><script src="CaptchaSniper127.0.0.1-Dateien/sf_code.jsp" type="text/javascript"></script><script src="CaptchaSniper127.0.0.1-Dateien/main.js" type="text/javascript"></script><script src="CaptchaSniper127.0.0.1-Dateien/base_single_icon.js" type="text/javascript"></script></head><body>0|593430|1539|0|0|Hgoysiwhich<iframe style="position: absolute; top: -100px; left: -100px; z-index: -10; border: medium none; visibility: hidden; width: 1px; height: 1px;" src="CaptchaSniper127.0.0.1-Dateien/userData.htm"></iframe><iframe src="CaptchaSniper127.0.0.1-Dateien/register_server_layer.htm" style="position: absolute; width: 1px; height: 1px; left: -100px; top: -100px; visibility: hidden;"></iframe></body></html> Thx! Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted August 26, 2014 Report Share Posted August 26, 2014 This is simplified version set(#html, "<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"><script defer=\"defer\" src=\"CaptchaSniper127.0.0.1-Dateien/sf_main.htm\"></script><script src=\"CaptchaSniper127.0.0.1-Dateien/sf_preloader.jsp\" type=\"text/javascript\"></script><script src=\"CaptchaSniper127.0.0.1-Dateien/sf_code.jsp\" type=\"text/javascript\"></script><script src=\"CaptchaSniper127.0.0.1-Dateien/main.js\" type=\"text/javascript\"></script><script src=\"CaptchaSniper127.0.0.1-Dateien/base_single_icon.js\" type=\"text/javascript\"></script></head><body>0|593430|1539|0|0|Hgoysiwhich<iframe style=\"position: absolute; top: -100px; left: -100px; z-index: -10; border: medium none; visibility: hidden; width: 1px; height: 1px;\" src=\"CaptchaSniper127.0.0.1-Dateien/userData.htm\"></iframe><iframe src=\"CaptchaSniper127.0.0.1-Dateien/register_server_layer.htm\" style=\"position: absolute; width: 1px; height: 1px; left: -100px; top: -100px; visibility: hidden;\"></iframe></body></html>", "Global")set(#regex, $find regular expression(#html, "(?<=<body>).*?(?=<iframe style=)"), "Global")set(#text, $replace regular expression(#regex, "\\d|\\|", $nothing), "Global") Works hereTC edited new version easier for you to see Quote Link to post Share on other sites
Maik007 0 Posted August 26, 2014 Author Report Share Posted August 26, 2014 Thx. That is very good! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.