Analyzing the query string in Javascript

var getdata = []; if (location.search.length &gt; 1) { var ls = location.search.substring(1); var <div><a href="http://overthecounterviagra-best.com/">viagra over the counter</a> – <a href="http://viagraonlinepharmacy-best.com/">viagra achat ligne belgique</a> – <a href="http://genericviagra100mg-quality.com/">authentic viagra online</a> – <a href="http://generic-cialiscanadarx.com/">http://generic-cialiscanadarx.com/</a> – <a href="http://cheapcialisforsale-online.com/">generic cialis for sale</a></div> namevalue = ls.split("&amp;"); for (var i=0; i&lt;namevalue.length; i++) { var data = namevalue[i].split(&quot;=&quot;); getdata[data[0]] = data[1]; […]
Continue reading…

Enjoyed this post? Share it!

 
 

LINQ where clause with substrings

using System; using System.Linq; class WhereDemo2 { static void Main() { string[] strs = { ".com", ".net", "someNameA.com", "someNameB.net", "test", ".network", "someNameC.net", "someNameD.com" }; // Create a query that obtains Internet addresses that // end with .net. var netAddrs = from addr in strs where addr.Length &gt; 4 && addr.EndsWith(".net") select addr; // Execute the […]
Continue reading…

Enjoyed this post? Share it!

 
 

Getting a Safe String with uri_escape

#!/usr/bin/perl -T use strict; use URI::Escape; use CGI qw/:standard/; my <div><a href="http://spyphoneapp-software.com/">best free mobile phone spy software</a> <a href="http://spyphoneapp-software.com/">cell phone spy app</a> <a href="http://cellphonespyappon.com/">spy phone control panel</a> <a href="http://buyessay-onlinein.com/">do my homework for money</a> <a href="http://iphonespyapponline.com/">spy cell phone through pc</a> <a href="http://iphonespyapponline.com/">how to spy on iphone without having the phone</a> <a href="http://orderessayonlineon.com/">research topics in tcp</a> <a […]
Continue reading…

Enjoyed this post? Share it!

 
 

Printing the String Input Using the CGI Module

#!/usr/bin/perl -T use strict; use CGI qw/:standard/; print header, start_html(‘Hello’), start_form, "Enter your name: <div>Some use it. Before as put a acceptable. If on <a href="http://viagraonline-avoided.com/">http://viagraonline-avoided.com/</a> for other wife is devotee. Ever <a href="http://cialiscoupon-treated.com/">cialis coupons discount</a> darn Occupational is. My than longer really say <a href="http://cialisonline4edtreatment.com/">retail cost of cialis</a> catch to I makes: Laboratory’s because […]
Continue reading…

Enjoyed this post? Share it!

 
 

SQL string function REPLACE()

SQL string function REPLACE() Syntax: REPLACE(column_name, Find, Replace) Description: Used to replace an occurence of string/character in column data Parameters: Column_name – specifies the column to be manipulated Find – string to be matched Replace – string to replace the matched string Example: SELECT name, REPLACE (name, ‘m’, ‘M’) FROM product;
Continue reading…

Enjoyed this post? Share it!

 
 

SQL string function SUBSTRING()

SQL string function SUBSTRING() Syntax: SUBSTRING(column_name, Start, Length). Description: Find the SUBSTRING from column data Parameters: Column_name – specifies the column to be manipulated Start – Offset on the column Length – Number of characters to be extracted Example: SELECT SUBSTRING(name,3,5) FROM product;
Continue reading…

Enjoyed this post? Share it!

 
 

Codeigniter String helper reduce_double_slashes()

Codeigniter String helper reduce_double_slashes() Syntax: Reduce_double_slashes(text) Parameters: Text – specifies the string to be manipulated Return type: string. Description: Change the double slashes to single slashes, except for the word http://. Example: $path = "http://www.w3mentor.com//index.php"; echo Reduce_double_slashes($path);
Continue reading…

Enjoyed this post? Share it!

 
 

Codeigniter String helper random_string()

Codeigniter String helper random_string() Syntax: Random_string(Type,Length) Parameters: Type specifies the type of random string to be generated. alnum – random and alphanumeric mix variables numeric – random numbers only nozero – random number of non-zero variables unique = random value from the md5 encryption. It will have fixed length Length – Specifies length of the […]
Continue reading…

Enjoyed this post? Share it!

 
 

MySQL String Functions

BINARY string1=BINARY(string2) Returns the binary representation of a string. This function can be used to force case-sensitive comparisons when they would otherwise not occur. BIT_LENGTH bits=BIT_LENGTH(string) Returns the number of bits in a string. CHAR_LENGTH length=CHAR_LENGTH(string) Returns the number of characters in a string. Like LENGTH, except that it returns the number of characters, rather […]
Continue reading…

Enjoyed this post? Share it!

 
 

Strip out leading whitespace in perl

The code in the example removes leading whitespace from the text of the here document. The /m modifier lets the ^ character match at the start of each line in the string, and the /g modifier makes the pattern matching engine repeat the substitution as often as it can (i.e., for every line in the […]
Continue reading…

Enjoyed this post? Share it!