On CFMX, this is the cleanest to read:

"\[GT:(.*?)\]"

On CF5, you'll have to use:

"\[GT:([^]])\]"

Not tested, may need tweaking, YMMV, etc.

--Ben

Duane Boudreau wrote:
> Hi All,
>  
> Got a regex question.
>  
> Sample content block: There are 31 [GT:moons] that surround Saturn
>  
> I need to replace [GT:moons] with <a
> href=""> >  
> I've got the following regex ,"\[GT:([a-zA-Z0-9 \'\\/]*)\]", but the problem
> is that I really need to check for any character between [GT: and ].
>  
> I know it should be something like "\[GT:(.*)\]" but I cant figure out how
> to enter in the exception for ]
>  
> TIA,
> Duane
>  
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to