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: | 73 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 156:07:53 |
| Calls: | 1,675 |
| Calls today: | 1 |
| Files: | 17,895 |
| D/L today: |
6 files (10,069K bytes) |
| Messages: | 66,132 |