ここで達成しようとしているのは、正規表現の影響を受ける単語の色を変更することです。
$(document).ready(function(){
container = $("#modal_container section").text();
hashtags = /\#\w+/g;
var container_hash = container.match(hashtags);
$(container_hash).css({'color':'red'});
//We're grabbing the words, but how can I change the color?
alert(container_hash);
});
これは、より明確にするためのフィドルhttp://jsfiddle.net/vuDzC/2/です。
ありがとう