Expand-Image without JavaScript appendix (Technics)

by Milo ⌂ @, Thursday, April 19, 2007, 05:15 (6215 days ago) @ Milo

Hi,

Btw: "he posting contains at least one not accepted word" if I don't know the word, it's a bad comment :(

The Problem ist HTML-Code like a link:

 < a href="#" ...>
--^  
 

It is mutch better to see the not accepted word now! Thx

 
function getID(str){
// new RegExp(/id=(d.+)/g)
var r = new RegExp(/id=(d+)/g).exec(str);
return r!=null&&r.length>=2?r[1]:r;
}

The return-statment is correctly:

return r!=null&&r.length>=2?r[1]:null;

I only tested this functions on this list of responses...

cu Micha

locked
17134 views

Complete thread:

 RSS Feed of thread