File Operations
Copy codeThe Code is as follows: Set fso = Wscript. CreateObject ("Scripting. FileSystemObject") 'creates a file system object to process drives, folders, and files.
Set WshShell = Wscript. CreateObject ("Wscript. Shell") 'creates a
CopyCode The Code is as follows:
Dim Param, smiles 'Param is the fully available mark of the UBB label. Param = Full is fully available. Otherwise, smiles, a label with a large footprint, is not supported.Function ubbcode (content)Dim N, I'On error
'Add link to the URL in the field.
Function tolink (STR)
Dim re 'regular expression object dim strcontent
If isnull (STR) Then STR = ""
Set Re = new Regexp 'create a regular expression object
With re
. Global = true' search applies to the entire
# Include# Include# Include# Include# Include
// Match the input mode with the string to be matched. If the input mode is successful, 0 is returned;// Pattern: Mode// Buf: the string to be matched;Int Regexp (char * pattern, char * BUF)
{Regex_t reg;
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1: Use a regular expression
/// Determine whether a string is a valid integer (no length limit)/// /// string /// Public static bool
Document directory
Classes
Example 1
Example 2
In the namespace regularexpressions, there are 10 classes, one proxy and one Enumeration type classes.
Class
Description
Capture
Represents the results from a
Sed (stream editor)
Function Description: Uses scripts to process text files.Syntax: sed [-hnV] [-e ] [-f ] [text file]Note: sed can process and edit text files according to script instructions.Parameters:-E or -- expression = processes input
Sed series: deletes a specific row by matching the row or pattern."P" command prints the buffer (remember to use-n option with "p ")"D" command is just opposite, its for deletion. 'd will delete the pattern space buffer and immediately starts the
Batch Processing instance code tutorial
--------------------------------------------------------------------------------
Batch Processing Program deletes itself. bat
Echo sometimes we need to delete the batch processing program after the execution
Sed: common linux tools and common sedlinux tools
Reference: http://www.thegeekstuff.com
Sed Working Principle
This is called as one execution cycle. Cycle continues till end of file/input is reached: 1. Read a entire line from stdin/file.2.
Copy codeThe Code is as follows:Function isTel (object){Var s = document. getElementById (object. id). value;// Verify the phone number and mobile phone numberVar pattern =/^ (\ d {11}) | ^ (\ d {7, 8}) | (\ d {4} | \ d {3 }) -(\ d {7, 8}) | (\ d {4}
This article mainly introduces four methods for determining whether JavaScript is a number or not and compares the efficiency. This article provides a direct method to determine whether the code and running efficiency can be used for your
navigating, changing text:^f ^b/ * forward, scroll back a full screen */^d ^u/ * forward, scroll back half screen */Z/ * Move the cursor to the top of the screen and roll the screen */Z. /* Move the
1.sed (stream editor) background knowledge(1) The basic format of the SED command line is:SED option ' script ' file1 file2 ... sed option-f scriptfile file1 file2.(2) SED processing files: can either be redirected from the standard input, or when
Lua_ 19th Chapters String LibraryThe LUA interpreter has limited support for strings. A program can create strings and concatenate strings, but cannot intercept substrings, check the size of a string, and detect the contents of a string. The ability
"P" command prints the buffer (remember to use-n option with "P")The "D" command is just opposite, which is a for deletion. ' d ' would delete the pattern space buffer and immediately starts the next cycle.Syntax:# sed ' ADDRESS ' d filename#
ECMAScript supports regular expressions through the regexp type.Using the following Perl-like syntax, you can create a regular expression.var expression=/pattern/flags;The pattern section can be any simple or complex regular expression that can
Source: http://yun.baidu.com/share/link?shareid=2310452098&uk=19976045511, feel in writing JS, it is best to clear the idea first, what to do, what to do, do not think where to write where;2, must learn to debug JS, or you write a lot, the result of
This article is mainly to share with you the PHP regular match all characters failure reasons and solutions, hope to help everyone.
PHP Regular Expression modifiers:
I: If this modifier is set, the letters in the pattern will be case insensitive
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.