document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'support support_function support_function_activerecord support_function_activerecord_rails\'>validates_format_of<\/span> <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:url<\/span>,\n");
document.write("         <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:with<\/span> =&gt; <span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>^<span class=\'string string_regexp string_regexp_group string_regexp_group_ruby\'>(http|https)<\/span>:<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\/<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\/<\/span><span class=\'string string_regexp string_regexp_character-class string_regexp_character-class_ruby\'>[a-z0-9]<\/span>+<span class=\'string string_regexp string_regexp_group string_regexp_group_ruby\'>(<span class=\'string string_regexp string_regexp_character-class string_regexp_character-class_ruby\'>[<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\-<\/span><span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\.<\/span>]<\/span><span class=\'string string_regexp string_regexp_arbitrary-repitition string_regexp_arbitrary-repitition_ruby\'>{1}<\/span><span class=\'string string_regexp string_regexp_character-class string_regexp_character-class_ruby\'>[a-z0-9]<\/span>+)<\/span>*<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\.<\/span><span class=\'string string_regexp string_regexp_character-class string_regexp_character-class_ruby\'>[a-z]<\/span><span class=\'string string_regexp string_regexp_arbitrary-repitition string_regexp_arbitrary-repitition_ruby\'>{2,5}<\/span><span class=\'string string_regexp string_regexp_group string_regexp_group_ruby\'>(<span class=\'string string_regexp string_regexp_group string_regexp_group_ruby\'>(<span class=\'string string_regexp string_regexp_character-class string_regexp_character-class_ruby\'>[0-9]<\/span><span class=\'string string_regexp string_regexp_arbitrary-repitition string_regexp_arbitrary-repitition_ruby\'>{1,5}<\/span>)<\/span>?<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\/<\/span>.*)<\/span>?$<\/span><span class=\'string string_regexp string_regexp_classic string_regexp_classic_ruby\'>/ix<\/span>,\n");
document.write("         <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:if<\/span> =&gt; <span class=\'support support_class support_class_ruby\'>Proc<\/span><span class=\'meta meta_function-call meta_function-call_method meta_function-call_method_without-arguments meta_function-call_method_without-arguments_ruby\'>.<span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>new<\/span><\/span> {<span class=\'meta meta_syntax meta_syntax_ruby meta_syntax_ruby_start-block\'> <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>MODEL_NAME<\/span>| <span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>!<\/span><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>MODEL_NAME<\/span><span class=\'meta meta_function-call meta_function-call_method meta_function-call_method_without-arguments meta_function-call_method_without-arguments_ruby\'>.<span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>url<\/span><\/span><span class=\'meta meta_function-call meta_function-call_method meta_function-call_method_without-arguments meta_function-call_method_without-arguments_ruby\'>.<span class=\'entity entity_name entity_name_function entity_name_function_ruby\'>blank?<\/span><\/span> },\n");
document.write("         <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:message<\/span> =&gt; <span class=\'string string_quoted string_quoted_single string_quoted_single_ruby\'>\'must begin with http://\'<\/span>\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/341482.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/341482\">Pastie #341482<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

