Keep It Simple, Stupid | |
PerlMonks |
Re: How to include escape sequence characters in regular expressions?by CountZero (Bishop) |
on Feb 12, 2014 at 19:56 UTC ( [id://1074678]=note: print w/replies, xml ) | Need Help?? |
Did you try using the unicode "Control Character" property? You can select them using m/\pCc/ or select everything but them using m/\PCc/ I have no idea if this will work as reading a binary file and assuming it is in unicode format is fraught with uncertainties. Hic leones! PS: If you have access to the InDesign program then you can export the text as an unformated text file (use File - Export). See: InDesign supported file formats CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James My blog: Imperial Deltronics
In Section
Seekers of Perl Wisdom
|
|