I've got some text (which you might recognise)
etc.Bill: Mr. Ryan, fellow distinguished classmates, teachers, babes. Ted: Our first speaker was born in the year… (Missy sneaks in and sits down next to Mr. Ryan.) Missy: Hi, long time no see. (Mr. Ryan smiles at her.) Ted: …470 BC. A time when much of the world looked like the cover of the Led Zepplin album 'Houses of the Holy'. Bill: We were there. There were many steps and columns, it was most tranquil. (gives a thumbs up.) Ted: He is sometimes known as the father of modern thought. He was the teacher of Plato, who was in turn the teacher of Aristotle. And like Ozzy Osborne, was repeatedly accused of corruption of the young. (Mr. Ryan watches them with interest.) Bill: And since he doesn't speak English, my friend Ted here, is going to interpret for him. (Ted shrugs his consent.) So please welcome, to tell us what he thinks of San Dimas, the most bodacious philosophizer in Ancient Greece… Both: Socrates! (The spotlight hits Socrates and he looks a little stumped.) (School Parking Lot) (Captain Logan and Mr. Preston are hurrying into the school.) Captain Logan: …is totally out of control. And I got a pretty good idea where he gets it from. I mean if you and that, that wife of yours would show a little discipline you're son wouldn't be such a bad influence. Mr. Preston: Oh, is discipline the key to the success with Ted? (goes inside) Captain Logan: (following) Yes! He's going to the Alaskan Military School. (They enter the Auditorium and see the boys on stage. Ted is speaking for Socrates.) Ted: He loves you best in all the world. Captain Logan: What are they doing up there? (Mr. Preston shhhs him.) Ted: He also loves baseball!
I'd like to remove all the stuff in the brackets, and the brackets themselves.
This is what I've got:
Code: Select all
$script = preg_replace("(.*)", "", $script, 1);I think the final '1' is there to stop it being greedy, but I'm not really sure.
I hate regex