Both Jochem and Ben were very close, here's what worked:


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


All I had to do was add the *


Thanks Guys!
Duane

  _____  

From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 10:29 AM
To: CF-Talk
Subject: Re: Regex Question

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