please help with my regular expression
Bert Wesarg
bert.wesarg at googlemail.com
Fri Feb 20 18:50:34 CET 2009
On Fri, Feb 20, 2009 at 18:15, John Ferrier <john_j_ferrier at yahoo.com> wrote:
> The following regular expression used in fortan language to match numerical constant
>
> <[0-9]+(\.[0-9]*)?([DEde][-+]?[0-9]*)?|\.[0-9]+([DEde][-+]?[0-9]*)?>
You should not use <> as 'delimiters', because that would not work
with a '.' inside. Try this:
(?<!\Y)[0-9]+(\.[0-9]*)?([DEde][-+]?[0-9]*)?|\.[0-9]+([DEde][-+]?[0-9]*)?(?!\Y)
Bert
More information about the Discuss
mailing list