If string1 is a literal, you can do this:ã > (string2.search(/string1/)==-1)ã > ã > Otherwise...ã > (string2.search(new RegExp(string1))==-1)ããOk, so it is a literal, and if string2 is part of an object, the same appliesãright?ããI should be able to do...ããif(ojb.string2.search(/string1/)==-1ããThat would be if string1 is NOT found right?ããWhat are the //'s for? Are they saying that string1 is literal?ãã---ã þ Synchronet þ Shadow River - shadowriver.homeip.netã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 77 |
Nodes: | 8 (0 / 8) |
Uptime: | 124:32:27 |
Calls: | 1,372 |
Files: | 17,895 |
D/L today: |
24 files (10,329K bytes) |
Messages: | 66,302 |