F
forwax
Hi there,
I'm trying to use "([\w ]+?)" to get some city name and is team name
out in some kind of condition but seems not to work with 3 city/team
that I got. The code that I use is at the bottom of the post.
Here some that work:
- "Edmonton Oilers"
- "Detroit Red Wings"
- "Montreal Canadiens"
But it doesn't work with does 3:
- "St.Louis Blues"
- "Wilkes-Barre/Scranton Penguins"
- "Omaha Ak-Sar-Ben Knights"
Should "([\w ]+?)" be enough to work or I'm missing something ?
Here the code from 2 different condition:
1.
elsif ($_ =~ /<tr><td class="STHSSchedule_GameNumber">\d+<\/td><td
class="STHSSchedule_ProLink"><a href="$prefix-(\d+).html">([\w ]+?)
\((\d+)\) vs ([\w ]+?) \((\d+)\)<\/a>(.*)<\/td><td
class="STHSSchedule_FarmLink">/i) { }
2.
elsif ($_ =~ /<a href="$prefix-Farm-(\d+).html">([\w ]+?) \((\d+)\) vs
([\w ]+?) \((\d+)\)(<\/a>)(.*)<\/td><\/tr>/i) { }
I'm trying to use "([\w ]+?)" to get some city name and is team name
out in some kind of condition but seems not to work with 3 city/team
that I got. The code that I use is at the bottom of the post.
Here some that work:
- "Edmonton Oilers"
- "Detroit Red Wings"
- "Montreal Canadiens"
But it doesn't work with does 3:
- "St.Louis Blues"
- "Wilkes-Barre/Scranton Penguins"
- "Omaha Ak-Sar-Ben Knights"
Should "([\w ]+?)" be enough to work or I'm missing something ?
Here the code from 2 different condition:
1.
elsif ($_ =~ /<tr><td class="STHSSchedule_GameNumber">\d+<\/td><td
class="STHSSchedule_ProLink"><a href="$prefix-(\d+).html">([\w ]+?)
\((\d+)\) vs ([\w ]+?) \((\d+)\)<\/a>(.*)<\/td><td
class="STHSSchedule_FarmLink">/i) { }
2.
elsif ($_ =~ /<a href="$prefix-Farm-(\d+).html">([\w ]+?) \((\d+)\) vs
([\w ]+?) \((\d+)\)(<\/a>)(.*)<\/td><\/tr>/i) { }