- or download this
$string =~ /((\w|'|-)+)/g
- or download this
$string =~ /([-\w']+)/g
- or download this
$string =~ /(\w+[-']?\w+)/g
- or download this
$string =~ /(\w+[-']?\w+|\w)/g
- or download this
#!/usr/local/bin/perl
...
This is a sentence with words that're different from other words.
They have apostrophes in them (') and dashes, or dash-like characters
(-).