Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js indexof regex

//regular indexof
let a = 'asbdais sbbdias isajdij';
a.indexOf('ias');
// with regex:
let a = 'asbdais sbbdias isajdij';
a.search(/ias/g);
 
PREVIOUS NEXT
Tagged: #js #indexof #regex
ADD COMMENT
Topic
Name
5+3 =