Regular Expressions - indicates scientific notation

Directly on the code

   was reg1 = /^[+-]?[\d]+([\.][\d]+)?([Ee][+-]?[\d]+)?$/

Positive and negative numbers can be identified, and its representation in scientific notation.

Guess you like

Origin www.cnblogs.com/xuxuya/p/11680327.html