Regex unexpected matching

I have written this regex to match a floating point literal:
1
2
(^[[:space:]]*)(([0-9]+\.?[0-9]*([eE][+-]?[0-9]+)?)|"
		"(\.[0-9]+([eE][+-]?[0-9]+)?))([fFdD]?[[:space:]]*)$


and when I match it with string like "123e" or "e2" it works while it shouldn't and I can't find the reason why. And please if anyone knows how to debug regex let me know how. Thanks in advance.
when I match it with string like "123e" or "e2" it works while it shouldn't
It won't for me.

What is that with quotes, newline and tab characters?

if anyone knows how to debug regex let me know how
Try this:
http://regex101.com/
It works fine now thank you. And yes answering your question those were for the new line because I wanted the regex to be written on two different lines.
the problem with me was escaping the "." .
Topic archived. No new replies allowed.