!google

By _Daniel_ on Aug 15, 2008

My first code..

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on $*:text:/^!google/Si:#: if (!$2) { halt } | .msg # [Google] $+(www.google.com,/,$2-)

Comments

Sign in to comment.
guest598594   -  Aug 19, 2008

Well jonesy, you can also use ^ inside [ ]'s to not include. Like [^something]

And there's no need for regex anyway.

 Respond  
Jonesy44   -  Aug 16, 2008

Ahh okay IFHTT .. it's different in PHP then :P

 Respond  
TropicalMeltdown   -  Aug 16, 2008

ok how do yu use it

 Respond  
IFHTT   -  Aug 16, 2008

^ indicates that the match is at the beginning of a string in regex

 Respond  
Jonesy44   -  Aug 15, 2008

doesn't /^ mean string does not contain following text? :/ or is that just reg-ex's

 Respond  
IFHTT   -  Aug 15, 2008

I don't think it'll work unless you use a replace to change the spaces to +.

Also you have to add /search?q= to the url otherwise google will not search for the query.

$+(www.google.com/search?q=,$replace($2-,$chr(32),+))
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.