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: | 212:01:06 |
Calls: | 1,551 |
Calls today: | 1 |
Files: | 17,895 |
D/L today: |
3 files (3,670K bytes) |
Messages: | 66,332 |