java - Searching Movie name in the Download URL -


we require verify, if given url has searchstringkeyword using regular expression.

for example

if url : http://thepiratebay.org/torrent/3962906/mera.naam.joker.1970.limited.dvdrip.xvid-d3si"  searchstringkeyword : mera naam joker expected outcome: true  searchstringkeyword : dvdrip expected outcome: true  searchstringkeyword : speed expected outcome: false 

any highly appreciated.

amit

your examples aren't quite comprehensive.

if want match url words "mera", "naam", , "joker", in order, number of characters separating them, use this:

/mera.*naam.*joker/ 

if want there 1 , 1 separating character, don't care character is, use this:

/mera.naam.joker/ 

if want there single . character between words, this:

/mera\.naam\.joker/ 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -