Without further ado, let’s take a look with the editor function validate</p> <p><span style="line-height: 1.76em;">1. <a href="http://www.php.cn/js-tutorial-352786.html" target="_blank">JavaScript regular expression verification non-positive integer example</a></span></p> <p><span style="line-height: 1.76em;"><img src="https://img.php.cn/upload/article/000/000/194/4859ec39f86c1d936170fdbc4e6acc05.jpg" style="max-width:90%" alt="Recommended 4 articles about non-positive integers" ></span></p> <p><span style="line-height: 1.76em;">Introduction: Not much to say, let’s take a look with the editor<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 .org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title><</span></p> <p><span style="line-height: 1.76em;">2. <a href="http://www.php.cn/php-weizijiaocheng-307754.html" target="_blank">Compilation and summary of commonly used regular expressions based on PHP_PHP tutorial</a></span></p> <p><span style="line-height: 1.76em;">Introduction: Based on commonly used regular expressions in PHP Compilation and summary. As shown below: Copy the code code as follows: "^/d+$" //Non-negative integer (positive integer + 0) "^[0-9]*[1-9][0-9]*$" //Positive Integer "^((-/d+)|(0+))$" //Non-positive integer (negative integer + 0) "^-[0-9]*</span></p> <p><span style="line-height: 1.76em;">3 . <a href="http://www.php.cn/php-sourcecode-156756.html" target="_blank">php Commonly Used Regular Expressions</a></span></p> <p><span style="line-height: 1.76em;">Introduction: ec(2); ^d+$ //Match non-negative integers (positive integers + 0) ^[0-9]*[1-9][0-9]*$ //Match positive integers ^((-d+)|(0+))$ //Match non-positive integers (negative integers + 0) ^-[0-9]*[1-9][0-9]*$ //Match negative integers ^-?d+$ //Match integers ^d+(.d+)?$ //Match non-negative floating point numbers (positive floating point numbers + 0) ^(([0-9]+.</span></p> <p>##4. <span style="line-height: 1.76em;">PHP regular method of extracting Chinese characters’ alphanumeric underlines and common regular expressions<a href="http://www.php.cn/php-notebook-93791.html" target="_blank"></a></span></p> <p>Introduction: Commonly used regular expressions in PHP^d$ //Non-negative integer (positive integer 0) ^[0-9]*[1-9][0-9]*$ //Positive integer ^((-d)|(0))$ //Non-positive integer (negative integer 0) ^-[0-9]*[1-9][0-9]*$ //Negative integer ^-?d $ //Integer ^d(.d)?$ //Non-negative floating point number (positive floating point number 0) ^(([0-9].[0-9]*[1-9][0-9]* )|([0-9]*[1-9][0-9]<span style="line-height: 1.76em;"></span></p> <p><br></p>