Try:

\[\[[A-Za-z0-9_]+?=[^]]+?\]\]

The + after the character class means 1 or more.  The ? after the + 
means non-greedy.

Not tested.  YMMV.

--Ben Doom

Al Everett wrote:
> I'm trying find a way to do some text replacement using a wiki-style notation.
> 
> What I want is to find all instances of
> 
> [[
> 
> followed by any number of letters, numbers, and/or underscores
> 
> followed by
> 
> =
> 
> followed by any characters
> 
> ending with
> 
> ]]
> 
> 
> Example: [[SUBJECT=Welcome to the group!]]
> 
> 
> I'm part of the way there. If I already know the "tag" on the left side of 
> equals sign I can find it:
> 
> "\[\[SUBJECT=[^\]]+\]\]"
> 
> 
> But trying to genericize it isn't working.
> 
> \[\[[A-Za-z0-9_]=[^\]]+\]\]
> 
> 
> Help? Obviously I'm trying for non-greedy matches. 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1084
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to