matchingNote: define the number of function parameters based on the number of capture groups in RegExp, if the parameter is too large, the "starting position of matching string" and "original string used for matching" cannot appear in the parameter. Of course, you can use the arguments object in the function to solve this problem, arguments (arguments. length-2) is the starting position of the matching string, arguments (arguments. length-1) is the original string used for matching.Copy codeThe
mentioned when using the program.
Compile it as an EXE file and run it independently. In the IDE environment, you can select Tools> debugger to remove the stop on dephi exceptions option.
I compile it as EXE and the prompt is JPEG Error #42.
I compile it as EXE and the prompt is JPEG Error #42.========================================================== ==============================It indicates that this error is not issued through the exception mechanism of Delphi, or is a runtime error,
think if an EXE file is generated, it should be run in the same way under any user.========================================================== ========================================================== ===Some system settings only support administrator, and your program can be modified by the administrator user. Other users cannot modify the program, which means other users do not have the permission to modify the key value, unless you redefine other user permissions as administrator permissions
terms of association of various classes, the famous observer model is more attractive than the event mechanism provided by the browser, at least better in terms of module decoupling. For example, the following code involves three modules:
this.keyboard .onLayoutChange(this.progress.setLayout.bind(this.progress)) .onKeyPress(this.field.keyPressed.bind(this.field));
When the appearance of the keyboard changes, the progress bar also changes. When a key is pressed, the display
disk.Greater than 1, which represents the buffer size (in bytes), 1 represents the use of the default buffer size.11.2 Basic File methods 11.2.1 Read and Write>>> f = open (R'c:\text\somefile.txt','w') Write >>> f.write ('ABCD \ r \ n gh')15>>> F.flush () // call Close () or flush () to actually write it in>>> F=open (R ' C:\text\somefile.txt ', ' r ')//Read>>> F.read (4)//Read Only 4' ABCD '>>> f.read ()//Read all' \ n EF \ n gh '11.2.2-Tube output The o
Delete
Move
Copy
Paste
Here are four common operations in normal modeTip: After entering normal mode, if you find no line number, you can go to command line mode to set, enter set NuDeleteX Delete a letterDW Delete a WordDD Delete a rowD1G Delete to First lineDG Delete to Tail lineMoveIn-line movementB Jump to the previous wordW jumps to the back of a word0 jumps to the beginning of the line$ jumps to the end of the lineFa jumps to the front one letter
.DB2
SELECT * from "SYSIBM". " Systables "where lower (name) = ' Afa_maintransdtl '
5. Deal with DB2 lock table problem:
DB2 "Connect to AFA"
DB2 "Get snapshot to Locks on instance name"
DB2 "Terminate"
Then look at the relevant information, locate the locked table, and execute the following statement:
DB2 "Force application (application handle) Note: Application handle corresponds to an integer
6. When the stored procedure is created on the s
Label:The regular expression function is really powerful, the day dedicated to learning, here is temporarily used in MySQL query. Regular expressions are powerful and flexible and can be applied to very complex queries.
Options
Description (auto plus match word)
Example
Example of matching values
^
Text Start character
' ^b ' matches a string beginning with the letter B
Book, big, banana, bike
$
Text End character
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.