Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:script': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.14; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Java': 0.16; 'wrote:': 0.16; 'script.': 0.18; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'trying': 0.22; 'java': 0.22; 'interpret': 0.22; 'am,': 0.23; 'code.': 0.23; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'message-id:@mail.gmail.com': 0.28; 'regular': 0.29; "can't": 0.32; 'embedded': 0.32; 'received:google.com': 0.34; 'two': 0.37; 'subject:: ': 0.37; 'address': 0.61; 'chrisa': 0.84; 'subject:source': 0.84; 'to:none': 0.90 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=aTHiSlPh+YvZvouhX+NGCxWfNFfYb09i9BERIvIySpQ=; b=CHSfDahTfOOPSEAgZo7J3Z7wpP3gqyM2yp6Fctb7lsqvShWga14UhYJoii7mUZPA+Q 3nmHpaI6TslmjKE6mCPZD+ph7TZgzFUUUlVvNAG9o51WHsUm7UyjE6I3w5MkBcVrC8q+ 79aNo1uchO8SutBk8PNdZHiXjL1nMCADq4ngzMrE3WyzMIxZ+d3gM71DbPy+a5WX10jn u74nnpfp8lyvIX8jDCWQRZ2t42sIHDQT3F0UMaaVJ3u0aNzLA0+0c46RTd5eqCsDKkPJ 7mj4OL/6eWRAwFX1xYymZimeGQmuDkPyvnNuqyttKRsEkuOv6SMvpzpIM7iRrHU0Neeh ygww== MIME-Version: 1.0 X-Received: by 10.107.16.149 with SMTP id 21mr10496096ioq.53.1432391819894; Sat, 23 May 2015 07:36:59 -0700 (PDT) In-Reply-To: References: Date: Sun, 24 May 2015 00:36:59 +1000 Subject: Re: Extract email address from Java script in html source using python From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432391822 news.xs4all.nl 2959 [2001:888:2000:d::a6]:35322 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91133 On Sun, May 24, 2015 at 12:15 AM, savitha devi wrote: > What I exactly want is the java script is in the html code. I am trying for > a regular expression to find the email address embedded with in the java > script. Now you have two problems. You can't write a regex that can interpret ECMAScript. ChrisA