perl escape chars!

Apollon Koutlides apollon at planewalk.net
Fri Aug 19 14:21:27 EEST 2005


Antonis Faragitakis wrote:

> mipos gnorizi kapoios pos agnorizi i perl se ena windows text document 
> to paragraph mark
> etsi oste na to kano replace me tipota!?

Δεν είμαι σίγουρος τι εννοείς "paragraph mark", ωστόσο αν ξέρεις το 
charcode του μπορείς να χρησιμοποιήσεις octal ή hex notation σε ένα 
regex, π.χ.:

$string =~ s/\033//;       # Octal 033
$string =~ s/\x1B//;       # Hex 1B
$string =~ s/\x{263a}//;   # Wide Hex (painful multibyte-char issues 
notwithstanding)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: apollon.vcf
Type: text/x-vcard
Size: 348 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/linux-greek-users/attachments/20050819/4cf84c2e/attachment.vcf>


More information about the Linux-greek-users mailing list