2011-09-21 104 views

回答

0

你可以這樣做:

myString.replace(/(?=http://.....)(\S{,25})\S*/g, '<a href="$0">$1</a>'); 

雖然這不會顯示省略號