Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-18 Thread Claude Pache
Le 18 févr. 2013 à 00:56, Biju a écrit : > On 16 February 2013 20:26, David Bruant wrote: >> Le 17/02/2013 00:58, Biju a écrit : > >> Also, it doesn't seem that hard to implement: >>String.prototype.startsWithI = function(s){ >>this.match(new RegExp('^'+s, 'i')); >>} > > you a

Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-18 Thread Biju
On 18 February 2013 01:24, Norbert Lindenberg wrote: > Actually, it's not just case that users want to ignore. In many use cases, > users search for something "similar" to their search string, and the > definition of "similar" can vary substantially. For example, an English > speaker typically

Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-17 Thread Norbert Lindenberg
Actually, it's not just case that users want to ignore. In many use cases, users search for something "similar" to their search string, and the definition of "similar" can vary substantially. For example, an English speaker typically wants "San Jose" to also match "San José", especially when he

Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-17 Thread Biju
On 16 February 2013 20:26, David Bruant wrote: > Le 17/02/2013 00:58, Biju a écrit : > Also, it doesn't seem that hard to implement: > String.prototype.startsWithI = function(s){ > this.match(new RegExp('^'+s, 'i')); > } you also made the common error any developer make (I am ign

Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-16 Thread Rick Waldron
On Saturday, February 16, 2013, David Bruant wrote: > Le 17/02/2013 00:58, Biju a écrit : > >> In most time when user want to search something in a text, he/she >> wants to do a case insensitive search. >> For example to filter items displayed in list on a page. >> Also on other applications, say

Re: Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-16 Thread David Bruant
Le 17/02/2013 00:58, Biju a écrit : In most time when user want to search something in a text, he/she wants to do a case insensitive search. For example to filter items displayed in list on a page. Also on other applications, say any word processor, or in page search in Firefox, IE, Chrome etc.

Case insensitive String startsWith, contains, endsWith, replaceAll method

2013-02-16 Thread Biju
In most time when user want to search something in a text, he/she wants to do a case insensitive search. For example to filter items displayed in list on a page. Also on other applications, say any word processor, or in page search in Firefox, IE, Chrome etc. So can we make the default behavior of