BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Anyone care to explain the construction of this regex.
Note: I know what it does. I am just puzzled as to the benefits of some elements of it's construction.
(?: (?i) (?: [+-]? ) (?: (?= [0123456789] | [.] ) (?: [0123456789]* ) (?: (?: [.] ) (?: [0123456789]{0,} ) )? ) (?: (?: [E] ) (?: (?: [+-]? ) (?: [0123456789]+ ) ) | ) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Explain a regex
by Util (Priest) on Jan 22, 2005 at 19:28 UTC | |
by BrowserUk (Patriarch) on Jan 22, 2005 at 23:58 UTC | |
|
Re: Explain a regex
by merlyn (Sage) on Jan 22, 2005 at 15:57 UTC | |
by BrowserUk (Patriarch) on Jan 22, 2005 at 16:29 UTC | |
by Tanktalus (Canon) on Jan 22, 2005 at 16:51 UTC | |
by merlyn (Sage) on Jan 22, 2005 at 20:26 UTC | |
by erix (Prior) on Jan 22, 2005 at 18:00 UTC | |
|
Re: Explain a regex
by hv (Prior) on Jan 22, 2005 at 15:56 UTC |