in reply to Re^4: Converting a passage of Spanish into hyphens and spaces
in thread Converting a passage of Spanish into hyphens and spaces
If the encoding is utf-8 rather than iso8859-1 then you can use the XPosixAlpha class like this:
$ echo habíamos reservado habitaciones. | perl -CIO -pe 's/\p{XPosixAl +pha}/-/g;' -------- --------- ------------.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Converting a passage of Spanish into hyphens and spaces
by UKhombre (Initiate) on Sep 13, 2015 at 19:28 UTC |