regex - How to string with quotes in perl? -


my $search = "sony's"; $string = "in tv sony's walkman"; 

how can match of "sony's" in $string using regular expression.

my $search = "sony's"; $string = "in tv sony's walkman";  $string =~ /$search/;   # not match $string =~ /$search/i;  # matches case-insensitive 

this total beginner question. please first learn language, read book or two.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -