Dictionary and Thesarus MyCode
#1
These MyCodes will look up the specified word on Dictionary.com/Thesaurus.com.

Dictionary:

Title:
Dictionary

Short Description:
This will put a link to dictionary.com, searching the word you enter.

Regular Expression:
\[dict\](.*?)\[/dict\]

Replacement:
<a href="http://dictionary.reference.com/browse/$1">$1</a>

What it will come out as:
Input:
[dict]test[/dict]

Output:
test

Thesaurus:

Title:
Thesaurus

Short Description:
This will put a link to thesaurus.com, searching the word you enter.

Regular Expression:
\[thes\](.*?)\[/thes\]

Replacement:
<a href="http://thesaurus.reference.com/browse/$1">$1</a>

What it will come out as:
Input:
[thes]test[/thes]

Output:
test
Reply
#2
Pretty nice code. You may consider shortening the tags as writing [dictionary]test[/dictionary] is about as long as actually getting the link yourself. :p
Reply
#3
okay, howabout [dict]test[/dict]?

Edit: Edited the post.
Reply
#4
That looks better. Good job.
Reply
#5
Thanks Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)