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: | 68 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 167:22:43 |
| Calls: | 1,845 |
| Files: | 17,895 |
| D/L today: |
8 files (4,478K bytes) |
| Messages: | 66,668 |