Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83694
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <Shambhu.Rajak@sandisk.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'output': 0.05; 'string.': 0.05; "'',": 0.07; 'subject:would': 0.07; 'string': 0.09; '??,': 0.09; 'subject:string': 0.09; 'stored': 0.12; 'above)': 0.16; 'copies).': 0.16; 'fetch': 0.16; 'from:addr:shambhu.rajak': 0.16; 'from:name:shambhu rajak': 0.16; 'received:172.28': 0.16; 'shambhu': 0.16; 'subject: \n ': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'thanks,': 0.17; 'command': 0.22; 'portion': 0.22; 'to:name:python-list@python.org': 0.22; 'error': 0.23; 'replace': 0.24; 'designated': 0.26; 'shown': 0.26; "skip:' 10": 0.31; 'possession': 0.31; 'subject:what': 0.31; 'anyone': 0.31; 'reader': 0.33; 'skip:? 10': 0.33; 'copying': 0.34; 'subject:the': 0.34; 'could': 0.34; 'url:rec-html40': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'url:microsoft': 0.37; 'received:10': 0.37; 'url:office': 0.38; 'to:addr:python-list': 0.38; 'url:schemas': 0.38; 'url:omml': 0.39; 'url:2004': 0.39; 'skip:_ 30': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'strictly': 0.61; 'information': 0.63; 'notified': 0.63; 'telephone': 0.63; 'note:': 0.66; 'as:': 0.81; 'recipient(s)': 0.95 |
| X-AuditID | ac1c210e-f79c66d000000da5-bc-54b5206571d1 |
| From | Shambhu Rajak <Shambhu.Rajak@sandisk.com> |
| To | "python-list@python.org" <python-list@python.org> |
| Subject | what would be the regular expression for null byte present in a string |
| Thread-Topic | what would be the regular expression for null byte present in a string |
| Thread-Index | AdAvNouPJh10hlRkTB2yMqhdshxBlQ== |
| Date | Tue, 13 Jan 2015 13:40:52 +0000 |
| Accept-Language | en-US |
| Content-Language | en-US |
| X-MS-Has-Attach | |
| X-MS-TNEF-Correlator | |
| x-originating-ip | [172.28.1.254] |
| Content-Type | multipart/alternative; boundary="_000_39F9E8A5546B9448A82E55FBEBE3EC450BD029A5SACMBXIP03sdcor_" |
| MIME-Version | 1.0 |
| X-Brightmail-Tracker | H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsWyRobxn26qwtYQg3eNlhZHWq+xOjB6vJj/ hi2AMYrLJiU1J7MstUjfLoEr4/2vk2wFy1Qrjp56ztbAOE+hi5GTQ0LARKL5yBRGCFtM4sK9 9WxdjFwcQgLHGSWmXTzNDuGcY5S4e+YqM0gVm4C+xLdJT9hAbBEBU4nXK3ezgtjCAoES8xb2 sEPEwyT2vjnAAmHrSdxdegosziKgKnHv/XqwbbwC0RKvnl0Bm8kItPn7qTVMIDazgLjErSfz mSAuEpBYsuc8M4QtKvHy8T9WCFtB4vOKf2wQ9fkSO1ufQM0UlDg58wnLBEahWUhGzUJSNgtJ GURcR2LB7k9sELa2xLKFr5lh7DMHHjMhiy9gZF/FKFacmFycm55aYGioV5yYl5JZnK2XnJ+7 iREcF4p8Oxj3TTE/xCjAwajEw7sje0uIEGtiWXFl7iFGCQ5mJRHe/wJbQ4R4UxIrq1KL8uOL SnNSiw8xSnOwKInzLnWbFSwkkJ5YkpqdmlqQWgSTZeLglGpgZAll+LdwZmdaTMf01QYr0+JD +TsNm/YaMl0z1typEN9T0/j90RaTaYf4n99tCnZ6mxLzyN2jopTho9rx+Stbde457H5wpnXr Nb7/XKlufUqFCd+5k4MWrytjDdnyTKNV4dCS+/mOZp9uNnOUflDYrt32x/7iWfHAEKdn5tFW p86UbJ5+djmTEktxRqKhFnNRcSIAgS4Bm4cCAAA= |
| X-EOPAttributedMessage | 0 |
| Received-SPF | Pass (protection.outlook.com: domain of sandisk.com designates 74.221.232.162 as permitted sender) receiver=protection.outlook.com; client-ip=74.221.232.162; helo=sacsmgep11.sandisk.com; |
| Authentication-Results | spf=pass (sender IP is 74.221.232.162) smtp.mailfrom=Shambhu.Rajak@sandisk.com; |
| X-Forefront-Antispam-Report | CIP:74.221.232.162; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(438002)(374574003)(189002)(199003)(164054003)(50986999)(54356999)(64706001)(2656002)(55846006)(97736003)(33656002)(19625215002)(46102003)(575784001)(19300405004)(86362001)(62966003)(77156002)(19580395003)(69596002)(2351001)(512954002)(77096005)(107886001)(68736005)(110136001)(92566002)(87936001)(229853001)(102836002)(106466001)(84326002)(16236675004)(450100001)(2900100001)(15975445007)(2920100001)(81156004)(16796002)(2930100002)(7099025); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB126; H:sacsmgep11.sandisk.com; FPR:; SPF:Pass; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; |
| X-DmarcAction-Test | None |
| X-Microsoft-Antispam | UriScan:; |
| X-Microsoft-Antispam | BCL:0;PCL:0;RULEID:(3005003);SRVR:CO1PR02MB126; |
| X-Exchange-Antispam-Report-Test | UriScan:; |
| X-Exchange-Antispam-Report-CFA-Test | BCL:0; PCL:0; RULEID:(601004); SRVR:CO1PR02MB126; |
| X-Forefront-PRVS | 045584D28C |
| X-Exchange-Antispam-Report-CFA-Test | BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB126; |
| X-OriginatorOrg | sandisk.com |
| X-MS-Exchange-CrossTenant-OriginalArrivalTime | 13 Jan 2015 13:40:54.1147 (UTC) |
| X-MS-Exchange-CrossTenant-Id | fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d |
| X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp | TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[74.221.232.162] |
| X-MS-Exchange-CrossTenant-FromEntityHeader | HybridOnPrem |
| X-MS-Exchange-Transport-CrossTenantHeadersStamped | CO1PR02MB126 |
| X-Mailman-Approved-At | Tue, 13 Jan 2015 15:24:26 +0100 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17674.1421159068.18130.python-list@python.org> (permalink) |
| Lines | 120 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1421159068 news.xs4all.nl 2881 [2001:888:2000:d::a6]:45635 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83694 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I have a string that I get as an output of a command as: '\x01\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x0010232ae8944a\x02\x00\x00\x00\x00\x00\x00\x00\n' I want to fetch '10232ae8944a' from the above string. I want to find a re pattern that could replace all the \x01..\x0z to be replace by empty string '', so that I can get the desired portion of string Can anyone help me with a working regex for it. Thanks, Shambhu ________________________________ PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
what would be the regular expression for null byte present in a string Shambhu Rajak <Shambhu.Rajak@sandisk.com> - 2015-01-13 13:40 +0000 Re: what would be the regular expression for null byte present in a string Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-13 17:25 +0000 Re: what would be the regular expression for null byte present in a string Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-14 14:42 +0100
csiph-web