Number Input That Supports Simple Math Expressions

Published on Tue Mar 01 2022

RegEx matches: '5', '+5', '-5', '5+5', '-5+5', '+5+5', '5+9+7*-2' RegEx doesn't match: '5+', '5-', '5+9-', 'asdfasf5+5'

Additional matching regexes for
Number Input That Supports Simple Math Expressions

Number Input That Supports Simple Math Expressions

RegEx matches: '5', '+5', '-5', '5+5', '-5+5', '+5+5', '5+9+7*-2' RegEx doesn't match: '5+', '5-', '5+9-', 'asdfasf5+5'

Simple Best URL Regex Match

# Best URL Regex to match URL, This is simple and can match 64K of url regex under 20ms ## Regex Matches All Below and more: - https://example.domain - http://example.domain - //example.domain - //example.com - https://example.com:34 - //example.com:23 - example.com

Full Best URL Regex Match

# Best Full URL Regex to match URL, This is simple and can match 64K of url regex under 77ms ## Regex Matches All Below and more: - https://example.domain - http://example.domain - //example.domain - //example.com - https://example.com:34 - //example.com:23 - example.com

Validate number in format: +xxxxxxxxxxx

Used for number validation in input forms, when number is required to be in international format. You can adjust the required number length by adjusting this part of regex: {6,10}. The bigged the second number, the longer number will pass the match.

Triple Quoted String

More powerful than python style, this supports things like `"""" """"`, which matches totally. Also supports `"""a""""""b"""`, where there are two matches: `"""a"""`,`"""b"""`.

Basic usage for tel ESA

Is a simple regex for compare tel number of El Salvador (not use +503 or iquals)

Match Literal Text Example

Regular Expressions Cookbook 2.1 Match Literal Text Example

Simple AWS ARN Regex

Simple AWS ARN Regex

Android Package Validation - Java Regex

**Note: replace the "\." with "\\." if you paste this on your java.** The regex will match if the package name is valid. example: `my.new.hello.world.app` Supports: a-z 0-9 and underscore Supports multiple dots

Semantec Versioning

Various RegEx expressions that work with Semantic Versioning,