peterS.: match / search / [RegExp].test

Beitrag lesen

gruss Paul,

es gaebe auch noch diese moeglichkeit:

var str="nur'n Test", regXTest = /Test/;  
  
if (regXTest.test(str)) {  
  
  //code  
}

so long - peterS. - pseliger@gmx.net

--
»Because objects in JavaScript are so flexible, you will want to think differently about class hierarchies.
Deep hierarchies are inappropriate. Shallow hierarchies are efficient and expressive.« - Douglas Crockford
ie:( fl:) br:> va:( ls:& fo:) rl:) n3;} n4:} ss:} de:µ js:} mo:? zu:]