Regular Expressions: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
With matching scientific notation (e.g. 1.5e-6). | With matching scientific notation (e.g. 1.5e-6). | ||
[https://rgxdb.com/r/1RSPF8MG Reference] | [https://rgxdb.com/r/1RSPF8MG Reference] | ||
<syntaxhighlight lang | <syntaxhighlight lang="ragel"> | ||
([-+]?\d*\.?\d+)(?:[eE]([-+]?\d+))? | ([-+]?\d*\.?\d+)(?:[eE]([-+]?\d+))? | ||
</syntaxhighlight> | </syntaxhighlight> |