Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
For example:
Now it won't work on all colors, I'll have them predefined. But I have no idea how the regex would work because I need it to make sure it doesn't crash.This is a [blue]test[/blue] [red]Hello![/red] [orange]world![/orange]
I would want it to match only the first time of each successful match and leave the uncessary ones as-is.This is a [blue]test[/blue] oops![/blue]
It'd want it to match the OUTTER MOST. If the whole sentence is wrapped in BLUE and it has other color tags, it's all blue. Different font colors can coexist on the same line, however, if properly used. Color codes cannot overlap eachother.This is a [blue][red]test[/red][/blue]
Anyone have experience with this? Regexes are not my strong point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: guestbook font [colors]
by GrandFather (Saint) on Aug 09, 2006 at 03:57 UTC | |
by Anonymous Monk on Aug 09, 2006 at 04:14 UTC | |
by GrandFather (Saint) on Aug 09, 2006 at 04:21 UTC | |
by Anonymous Monk on Aug 09, 2006 at 04:29 UTC | |
by GrandFather (Saint) on Aug 09, 2006 at 04:37 UTC |