Skip to main content
deleted 32 characters in body
Source Link

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitiveinsensitive.

var username = new RegExp("^" + "John" + "$", "i");;;

The value of username will be like /John/i.

use username in queries, and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = new RegExp("John", "i");

The value of username will be like /John/i.

use username in queries, and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case insensitive.

var username = new RegExp("^" + "John" + "$", "i");;

use username in queries, and then its done.

I hope it will work for you too. All the Best.

deleted 49 characters in body
Source Link

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = "John";

var uname = new RegExp(username"John", "i");

The value of unameusername will be like /John/i.

use unameusername in queries instead of username, and and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = "John";

var uname = new RegExp(username, "i");

The value of uname will be like /John/i.

use uname in queries instead of username, and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = new RegExp("John", "i");

The value of username will be like /John/i.

use username in queries, and then its done.

I hope it will work for you too. All the Best.

Post Undeleted by Gouri Shankar Karanam
Post Deleted by Gouri Shankar Karanam
added 18 characters in body
Source Link
Derrick
  • 4.6k
  • 5
  • 41
  • 54

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = "John";

var uname = new RegExp(username, "i");

var username = "John";

var uname = new RegExp(username, "i");

The value of unameuname will be like /John/i/John/i.

use uname in queries instead of username, and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = "John";

var uname = new RegExp(username, "i");

The value of uname will be like /John/i.

use uname in queries instead of username, and then its done.

I hope it will work for you too. All the Best.

Use RegExp, In case if any other options do not work for you, RegExp is a good option. It makes the string case sensitive.

var username = "John";

var uname = new RegExp(username, "i");

The value of uname will be like /John/i.

use uname in queries instead of username, and then its done.

I hope it will work for you too. All the Best.

Source Link
Loading