[Solved] C++ regular expression

Given that you know the probe part ends with } and the IP part end with a &, it’s probably easiest to just scan for those: sscanf(input, “Ip=%[^&]&probe=%[^}]”, ipt, probe); One minor detail: scanf with either a scanset or a %s conversion needs to have the buffer size specified to have any safety at all. … Read more

[Solved] Grep certain files only

If this is for perl code, as your tags imply, then you would typically use grep: my @all = qw( 12345_lrg.jpg 12445_sml.jpg 14445_sml.jpg 12345_lrg.jpg 42345_lrg.jpg ); my @sml = grep /_sml\.jpg$/i, @all; 2 solved Grep certain files only

[Solved] Awstats tool : issue with missing icons and histogram bars on main page of Awstats – probably an issue of path defined into Apache

Your current config prevents proxying for /cgi-bin/ with the RewriteCond here: RewriteCond %{REQUEST_URI} !^/cgi-bin/(search|awstats) [NC] RewriteRule ^/(.*) https://localhost:8443/++vh++https:%{SERVER_NAME}:443/++/$1 [P,L] You need also short-circuit for /awstats* so they aren’t proxied to that zope nonsense. Multiple conditions are AND’ed by default so it’s easy: RewriteCond %{REQUEST_URI} !^/awstats [NC] RewriteCond %{REQUEST_URI} !^/cgi-bin/(search|awstats) [NC] RewriteRule ^/(.*) https://localhost:8443/++vh++https:%{SERVER_NAME}:443/++/$1 [P,L] 0 … Read more

[Solved] images on CGI or HTML files

Impossible to answer because you haven’t given us anywhere near enough information. But your code does give one potential clue. use CGI qw/:standard/; use DBI; print “Content-type:text/html\n\n”; print first(); print myform(); print second(); sub myform { return <<B; <form action=” method=’post’> <img src=”https://stackoverflow.com/questions/26614013/images/img0001.gif” id=”Shape1″ align=”top” alt=”” title=”” border=”0″ width=”1344″ height=”126″> … </form> B } You … Read more