I'm quite sure it is possible... Something along these lines...

/\[(input|types|here)( ".*"|'.*'|[^\]]+)?]/

The idea is you can take anything inside single or double quotes, or
outside of quotes, or that is not in quotes but does not contain a ],
up until the first ] not inside quote markus. But you have to also
figure in possible parameter labels, like field= or value=. Maybe
something along these lines (just off the cuff)...

/\[(input|types|here)(( ([-_a-z0-9]+\=)?".*"|'.*'|[^\]]))?]/

Anyway, I just haven't sat down to try and do it. I'm quite convinced
Pm could whip it out in 5 minutes. Me it would take an hour if I'm
lucky.  Just hasn't been a problem. Feel free to take a stab at it.

Cheers
Dan


On Tue, Oct 6, 2009 at 5:19 PM, Hans <[email protected]> wrote:
>
> Not really. If you want a single ] to close and allow any characters
> before, or after, you have no choice.
> You need to make an exception, which you did by allowing =] not to
> close the markup.
> Or have another specified character before the closing ], which gives
> you a two character ending, which leaves you with much more scope of
> what can go in the string before.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to