exodist has asked for the wisdom of the Perl Monks concerning the following question:
$Title =~ s,^$Artist\s*-\s*,,ig; //Remove artist name from string
--In this case the artist name is: Trance[]Control/stuff/Audio/Techno/Trance[]Control Unmatched [ in regex; marked by <-- HERE in m/^trance[ <-- HERE ]contr +ol\s*-\s*/ at ./builddb.pl line 121.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Make a variable safe for a regex.
by jettero (Monsignor) on Feb 25, 2007 at 21:56 UTC | |
by exodist (Monk) on Feb 25, 2007 at 22:27 UTC | |
by Sixtease (Friar) on Feb 28, 2007 at 22:15 UTC | |
by Corion (Patriarch) on Mar 03, 2007 at 18:53 UTC | |
|
Re: Make a variable safe for a regex.
by kyle (Abbot) on Feb 25, 2007 at 21:56 UTC | |
by Anno (Deacon) on Feb 25, 2007 at 22:55 UTC | |
by diotalevi (Canon) on Feb 26, 2007 at 00:47 UTC | |
by Anno (Deacon) on Feb 26, 2007 at 08:32 UTC | |
|
Re: Make a variable safe for a regex.
by jesuashok (Curate) on Feb 26, 2007 at 03:34 UTC | |
|
Re: Make a variable safe for a regex.
by meenugaur (Initiate) on Feb 26, 2007 at 21:08 UTC |