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: | 72 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 21:52:29 |
| Calls: | 1,697 |
| Calls today: | 1 |
| Files: | 17,895 |
| D/L today: |
119 files (63,430K bytes) |
| Messages: | 66,558 |