Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How to include escape sequence characters in regular expressions?

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1074678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found