RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find complex numbers
Expression
^[+|-]?[\i0-9\.]{0,}[+|-]?[\i0-9\.]{0,}$
Description
Check complex numbers syntax according to the forms reported in the matching examples list. Scientific notation is not supported (yet?)
Matches
1.0+i|i|2|i+2|i-1|0.122222i-0.2333|0.2|0.2i|-2-i|-1.0-i|-3.0+1i|-2.0+1.0i|3.0i-2.0i
Non-Matches
1.0E-10|-2-i0.999e-8
Author Rating: Not yet rated. Alessandro Rosa
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials