Re: please help with my regular expression
Bert Wesarg <bert.wesarg-gM/[email protected]>
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Feb 20, 2009 at 18:15, John Ferrier <john_j_ferrier-/[email protected]> 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 -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss