Topic awaiting preservation: Perl REGEX Hex character |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 07-18-2003 18:42
I would like to search for a hex charater "A0" and remove it from my text file...is this possible with Perl. I would like to learn how to do it so please post examples or URLs that show how to perform this substitution. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-18-2003 19:37
sure you can search for hex like so |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 08-07-2003 17:53
great thanks that helps...epanding on that though what if you need to search for hex codes '0D 0A' together? Right now I am removing these as \n at the beginning of my script then adding them in later in the script to fix formatting. If I could remove these without having to strip all the \n at the beginning of the script I'd be a lot happier. |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 08-09-2003 07:31
I assume that this relates to your other thread about finding tags in an HTML file. code: if (not open(INPUT, "< file.html"))
|