Title: [2013.08.29]Using Regular Express to Get the Value from Win8.1(WHCK) System IQ Test [Print this page] author: 夢 time: 2013-8-29 16:42 Title: [2013.08.29]Using Regular Express to Get the Value from Win8.1(WHCK) System IQ Test
People can get the log file or htm report from WHCK, like below example
We use expresso to analysis the regular express rule to get the vale we need .
For example, I need to collect the IQ test vale of every test itmes, so I need get the parameter from the word - Test, Value, Expected, Resolution and Lux.
Below conclustion list some perl regular express rule to realize my need, people can use ultraedit or expresso to test the result.
pattern4:
.*Test=([\w-\.]+).*Result=([\w-\.]+).*METRIC=([\w-\.]+),.*Value=([\w-\.]+),.*Expected=([\w-\.]+),.*Resolution=([\w-\.]+),.*(Lux=[\w-\.]+)<.*
(Because of regular express are not only Perl but POSIX RE or Extended RE, the w parameter of rule4 can't recongnize by ultraedit Perl, it just could to be analysis by expresso.)
Other application of the ultraedit perl replace A on B:
1. Get the specific source from some homepage
2.
fill the pattern
.*href="(.*mkv\|)([^\|]*)\|([^\|]*)\|.*
Copy the Code
and replace with
\1\2|\3|
Copy the Code
then, you can get the pure ed2k links
author: 夢 time: 2013-10-26 00:52
Another application
Baidu cloud (百度雲) download by SMG
First, you need to install BaiduPanDownloadHelper.
Then you can view the links source like above example's step.
Final that you also deal with the source by ultraedit to get pure donwnload links.
1.regular express engine set to UltraEdit and replace amp; on none(Null)
2.regular express engine set to UltraEdit, then replace <a class= on ^p<a class=
3.regular express engine set to Perl
pattern
.*href="([^\"]*)\".*[^>]*>(.*mkv).*
Copy the Code
replace with
\1|\2
Copy the Code
Then, you can get the download link, and you can copy these links into SMG to download files