How can I extract movie names by regular expression

Jim

Here are some examples of data:

1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0

2|GoldenEye (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?GoldenEye%20(1995)|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0

I wish to extract the movie names with the year:

Toy Story (1995)

GoldenEye (1995)

Thanks a lot!

Mureinik

In Java this can be done relatively easily by using the String.split:

String str = "1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0";
String movieName = str.split("\\|")[1];

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I extract string using Php regular expression

How can I extract number from text with regular expression

How can I extract a still image with subtitles from a movie?

How can I use grep and regular expression to display names with just 3 characters

How can I extract values that have opening and closing brackets with regular expression?

How i can extract substring from string using regular expression in .NET

Original string contains "+", regular expression extractor (.+?) replaces it with a space. How can I extract with the "+"

How can I extract all the instances of a regular expression pattern in PySpark dataframe?

How can I extract only google drive folder id in url with javascript regular expression?

How can I check it with regular Expression?

How can I be more specific with this regular expression?

How can I match regular expression for this url?

How can i validate jquery Regular expression?

How can I negate a regular expression?

How can I invert a regular expression in JavaScript?

How can I add Hangul to this regular expression?

how can I fix this regular expression function?

How can I construct this Regular Expression

How can I check for an @ in a regular expression?

How can I repeat a match in a regular expression?

How can extract string matches using regular expression from a List?

How do I extract specified matches using regular expression in Python?

How to extract names from unordered data string using regular expression in python?

How to parse the top 250 movie title using Regular expression in Python

In JMeter I need to extract a specific Regular Expression

How can I extract pdf names from an lftp log file?

How can I extract alternative names data from a CSR?

How can I extract the column names from ColumnDataSource in Bokeh 2.4.3?

How can I extract numbers from dataframe names in a list in R?