Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Supports Sending plain text emails and HTML emails, including multiple recipients, multiple CC, and multiple confidential CC,
Some time ago I wrote a pop-up dialog box for js data verification, js email verification, js url verification, js length verification, and js digital verification. However, the unfriendly method is not very popular, so I wrote a new one, which is
First, class document description
Copy Code code as follows:
Class image_tool{
/**
* Construct Image_tool Object
* @param string|array $img _data
* $img _data can be the path to the picture
*/
function __construct ($img _data= "");
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn common regular expressions to verify information, such as the website email phone number.
/*** Common regular expressions are
Js data verification, jsemail verification, jsurl verification, js length verification, js digital verification, etc. Some time ago I wrote a javascript data verification, js email verification, js url verification, js length verification, js in the
The js data verification set is encapsulated and recommended for use. The sample code is provided. Some time ago I wrote a pop-up dialog box for js data verification, js email verification, js url verification, js length verification, and js digital
Some time ago I wrote a pop-up dialog box for js data verification, js email verification, js url verification, js length verification, and js digital verification. However, the unfriendly method is not very popular, so I overwrote a layer that is
Js data verification, jsemail verification, jsurl verification, js length verification, js digital verification, etc. Some time ago I wrote a javascript data verification, js email verification, js url verification, js length verification, js in the
This extension is implemented based on ImageMagick. image operations call ImageMagickAPI 1. class documentation.
Class Image_Tool {/*** construct Image_Tool object * @ param string | array $ img_data * $ img_data can be the image path */function _
The js data verification set is encapsulated and recommended for use. The sample code is provided. Some time ago I wrote a pop-up dialog box for js data verification, js email verification, js url verification, js length verification, and js digital
CopyCode The Code is as follows :/**
* Get the length of Chinese and English characters
* @ Param {} Str
* @ Return {}
*/
Function lengthb (STR ){
VaR p1 = new Regexp ('% u ..', 'G ')
VaR P2 = new Regexp ('%.', 'G ')
Return escape (STR). Replace (P1,
A period of time ago wrote a JS data validation, JS email verification, JS URL verification, JS length verification, JS digital verification, such as pop-up dialog box form but, now not very popular kind of very unfriendly way, so rewrite a,
Copy Code code as follows:
/**
* Get Chinese and English characters
* @param {} str
* @return {}
*/
function LENGTHB (str) {
var p1 = new RegExp ('%u ... ', ' g ')
var P2 = new RegExp ('%. ', ' G ')
return Escape (str). replace (P1, ').
This extension provides some APIs of Tokyo cabinet for PHP client calls.
The following is an introduction to Tokyo cabinet from Baidu Encyclopedia:
Tokyo cabinet is a dBm implementation. The database here consists of a series of key-value pairs.
SVN class written in PHP. Copy the code as follows :? Php *** SVN external command class ** @ authorrubekid ** @ todocommentneedaddslashesforsvncommit ** classSvnUtils {*** svn account * constSV
The code is as follows:
/*** SVN external command
Class verify{
/**
* Verify user name
* @param string $value
* @param int $length
* @return Boolean
*/
public static function Isnames ($value, $minLen =2, $maxLen =20, $charset = ' all ') {
if (empty ($value))
Class verify{
/**
* Verify user name
* @param string $value
* @param int $length
* @return Boolean
*/
public static function Isnames ($value, $minLen =2, $maxLen =20, $charset = ' all ') {
if (empty ($value))
In the previous article, the www. oschina. netcodesnippet_1182150_25127 attachment function was not written, but it was reserved. PHP source code and demo: source code? Php *** mail sending class ** supports Sending plain text mails and HTML-format
Common java Regular Expression tools and Regular Expressions
The examples in this article share the code of the java Regular Expression tool class for your reference. The specific content is as follows:
Import com. google. common. base. strings;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.