O’Reilly? YA RLY!

Filed under: Coding,Funny,Web Design,Work — Brett @ September 22, 2006 9:57 am
<script type="text/javascript" language="Javascript">
	i = /^[O]{1}( {1}RLY)\?{1}$/mi ;
	j = /^Y(A) {1}RLY[\!.]?$/mi ;
	q = prompt('O'Reilly? Ya Reilly!');
	if (i.test(q)) {
		alert (q.toUpperCase().replace(i,'YA $1'));
	} else if(j.test(q)) {
		alert (q.toUpperCase().replace(j,'NO W$1I!'));
	}
</script>

O'Reilly? YA RLY!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment