--- In [email protected], Carroll Robbins <carrollrobb...@...> wrote:
>
> On Fri, 01 Jan 2010 05:11:36 -0000, "nickodemos2002"
> <nickodemos2...@...> wrote:
> 
> >Is it possible to get some regex help here? I have no idea on it and it is 
> >the last sticky wicket I need fixed.
> 
> I'll help if it's simple. Sheri is the resident expert and helps a lot.
> What is your question?
> -- 
> Carroll B. Robbins, Jr.
>
Not simple. Here is what I posted at a regex site.

I am a moderator on a website that host classic movies. When the owner of the 
site started the site he had some problems with the code and it has left some 
not so nice looking pages and I am trying to clean it up. So far I have 
everything I wanted in the scripting program I want except for this. My script 
copies the information to Emeditor to clean up by deleting bad code and various 
other things. One thing I would love to be able to do is clean up this below 
but I am lost on regex.

xp using emeditor

This is what is shown.

[b]Year:[/b] 1935
[b]Runtime:[/b]  minutes
[b]IMDB Rating:[/b] 6.7
[b]Film Language(s):[/b]
English
[b]Film Country(s):[/b]
USA
[b]Main Genre:[/b] Action
[b]Other Genre(s):[/b] Action, Adventure, Drama, Romance,  Western
[b]Filmed in:[/b]
Black and White
[b]Sound:[/b]
Mono,
Dolby
[b]More:[/b]

When Emeditor is done all spaces at the end are gone so it is right next to the 
right braket. I need something that will find a right bracket ']' with a new 
line and then hit delete till a a-zA-Z chareter pops up and put a space 
betweent it and the right bracket '] '. Then goes to the end and does it again 
unless the next charecter is a left bracket '['

And this is what I would like.

[b]Year:[/b] 1935
[b]Runtime:[/b]  minutes
[b]IMDB Rating:[/b] 6.7
[b]Film Language(s):[/b] English
[b]Film Country(s):[/b] USA
[b]Main Genre:[/b] Action
[b]Other Genre(s):[/b] Action, Adventure, Drama, Romance, Western
[b]Filmed in:[/b] Black and White
[b]Sound:[/b] Mono
[b]More:[/b]

I know this might be complicated or it might not be. But I have close to 9000 
pages to go through and this is the last thing that stops it from all being 
automated.

-OK after posting I see that the few things I mentioned are not clear. 
Everything in bold has [ b ] and [ /b ]. Forum/bulletin board coding.


Reply via email to