beginning of the line.
Is there an URL after each date that you want removed? If so, then do
[0-9]{2}/[0-9]{2}/[0-9]{2} (https?://)
I used 0-9 just because I like it more than digit. :)
I also added the http test after to make sure there's an url. Just replace that
with \1 and it'll work. It also takes https into account.
If you can do this in CFMX then you can use the ^ to specify the beginning of
the line, but that'll be a non-studio script. Easy to write, but needs CFFILE as
well.
> Off the top of my head, replace
>
> ^[[:digit:]]{2}/[[:digit:]]{2}/[[:digit:]]{2}
> (note there's a space at the end of the line)
>
> with nothing.
>
> --Ben
>
> Jeff Beer wrote:
>
> > In CF Studio 5, how would I do a regex search and replace on a line format
> > like:
> >
> >
> > 04/22/04 http://www.blah.com/stuff
> >
> >
> > where I want to remove the date and the following space, leaving the rest of
> > the line untouched?
> >
> >
> > I have to do this for about 30,000 lines.. no fun by hand!
> >
> >
> > Thanks!
> >
> >
> > Jeff
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

