( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10314099792require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10424128784include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10424128784get_header( $name = ???, $args = ??? ).../single.php:10
60.10424129000locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10424129096load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10424129640require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10444137048wp_head( ).../header.php:18
100.10444137048do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10444137264WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10444137264WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10454140680wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10454140680do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10454140896WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10454140896WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10474142784twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10484144304wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10484144304WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10484144304WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10484144304_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.10484144624wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.10494151008trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10314099792require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10424128784include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10424128784get_header( $name = ???, $args = ??? ).../single.php:10
60.10424129000locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10424129096load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10424129640require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10444137048wp_head( ).../header.php:18
100.10444137048do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10444137264WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10444137264WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10454140680wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10454140680do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10454140896WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10454140896WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10474142784twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.13034152112wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.13034152112WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.13034152112WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.13034152112_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.13034152432wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.13044152656trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

TestRegex regexp

 

package net.strong.util;




import org.apache.oro.text.regex.MatchResult;


import org.apache.oro.text.regex.Pattern;


import org.apache.oro.text.regex.PatternCompiler;


import org.apache.oro.text.regex.PatternMatcher;


import org.apache.oro.text.regex.PatternMatcherInput;


import org.apache.oro.text.regex.Perl5Compiler;


import org.apache.oro.text.regex.Perl5Matcher;


import org.apache.oro.text.regex.Perl5Substitution;


import org.apache.oro.text.regex.Util;




public class TestRegex {


public TestRegex() {}


public void parseLog() throws Exception {


String log1=“172.26.155.241 – – [26/Feb/2001:10:56:03 -0500] \”GET /IsAlive.htm HTTP/1.0\” 200 15 “;




String regexp=“(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})\\s-\\s-\\s\\[([^\\]]+)\\]”;




PatternCompiler compiler=new Perl5Compiler();


Pattern pattern=compiler.compile(regexp);




PatternMatcher matcher=new Perl5Matcher();


if (matcher.contains(log1,pattern)) {


MatchResult result=matcher.getMatch();


System.out.println(“IP: “+result.group(1));


System.out.println(“Timestamp: “+result.group(2));


}


}


public void parseHTML() throws Exception {


String html=“<font face=\”Arial, Serif\” size=\”+1\”color=\”red\”>”;




String regexpForFontTag=“<\\s*font\\s+([^>]*)\\s*>”;


String regexpForFontAttrib=“([a-z]+)\\s*=\\s*\”([^\”]+)\””;




PatternCompiler compiler=new Perl5Compiler();


Pattern patternForFontTag=compiler.compile(regexpForFontTag,Perl5Compiler.CASE_INSENSITIVE_MASK);


Pattern patternForFontAttrib=compiler.compile(regexpForFontAttrib,Perl5Compiler.CASE_INSENSITIVE_MASK);




PatternMatcher matcher=new Perl5Matcher();


if (matcher.contains(html,patternForFontTag)) {


MatchResult result=matcher.getMatch();


String attrib=result.group(1);




PatternMatcherInput input=new PatternMatcherInput(attrib);


while (matcher.contains(input,patternForFontAttrib)) {


result=matcher.getMatch();


System.out.println(result.group(1)+“: “+result.group(2));


}


}


}


public void substitutelink() throws Exception {


String link=“<a href=\”http://widgets.acme.com/interface.html#How_To_Trade\”>”;


String regexpForLink=“<\\s*a\\s+href\\s*=\\s*\”http://widgets.acme.com/interface.html#([^\”]+)\”>”;




PatternCompiler compiler=new Perl5Compiler();


Pattern patternForLink=compiler.compile(regexpForLink,Perl5Compiler.CASE_INSENSITIVE_MASK);




PatternMatcher matcher=new Perl5Matcher();




String result=Util.substitute(matcher,


patternForLink,


new Perl5Substitution(“<a href=\”http://newserver.acme.com/interface.html#$1\”>”),


link,


Util.SUBSTITUTE_ALL);




System.out.println(result);


}


public static void main(String[] args) throws Exception {


TestRegex test=new TestRegex();


System.out.println(“\n\nLog Parsing Example”);


test.parseLog();


System.out.println(“\n\nHtml Example 1”);


test.parseHTML();


System.out.println(“\n\nHtml Example 2”);


test.substitutelink();


}


}






Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.