Play It Again, Sam is a 1972 film written by and starring Woody Allen, based on his 1969 Broadway play. The film was directed by Herbert Ross, which is unusual, in that Allen usually directs his own written work. The film is about a recently divorced writer of film commentary, Allan Felix, being urged to begin dating again by his best friend and his best friend's wife. Allan identifies with the movie Casablanca and the character Rick Blaine as played by Humphrey Bogart. The film is liberally sprinkled with clips from the movie and ghost-like appearances of Bogart (Jerry Lacy) giving advice on how to treat women. Set in San Francisco, the film begins with the closing scenes of Casablanca, with Humphrey Bogart and Ingrid Bergman. We then see that the main character, Allan Felix (Woody Allen), is watching the film in a cinema, mouth agape. He leaves the cinema regretting that he will never be like Rick. Apart from apparitions of Bogart he also has frequent flashbacks of conversations with his ex-wife, who constantly mocked his sexual inadequacy.