Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28831

Re: string comparison fails? - Image1.jpg (0/1)

Newsgroups comp.lang.javascript
Subject Re: string comparison fails? - Image1.jpg (0/1)
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <08642bl9537lanf90ghcng1hefvuejcl20@4ax.com>
Date 2015-10-17 12:28 +0200
Message-ID <XnsA5367EE9B1D4Feejj99@194.109.6.166> (permalink)

Show all headers | View raw


joe <mt@invalid.com> wrote on 17 Oct 2015 in comp.lang.javascript:

>             var apu2=all.split(">");
> ...
> 
> I then have apu2 as:
> apu2[0]  "-><!DOCTYPE.."

No, by using split(">") all the ">"'s are consumed.

> What I am doing wrong?

Do a better job debugging,
using alert() and/or console.log
[if you are working clientside javascript]

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

string comparison fails? - Image1.jpg (0/1) joe <mt@invalid.com> - 2015-10-17 13:00 +0300
  Re: string comparison fails? - Image1.jpg (0/1) Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-17 11:18 +0100
    Re: string comparison fails? - Image1.jpg (0/1) joe <mt@invalid.com> - 2015-10-17 13:57 +0300
    Re: string comparison fails? - Image1.jpg (0/1) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-17 14:59 +0200
      Re: string comparison fails? - Image1.jpg (0/1) Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-17 14:37 +0100
        Re: string comparison fails? - Image1.jpg (0/1) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-17 16:11 +0200
  Re: string comparison fails? - Image1.jpg (0/1) "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-10-17 12:21 +0200
  Re: string comparison fails? - Image1.jpg (0/1) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-10-17 12:28 +0200

csiph-web