Skip to content

Instantly share code, notes, and snippets.

@tacoverdo
Created July 1, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacoverdo/c5da4fe2f7f3b7bd0e02c084dd643886 to your computer and use it in GitHub Desktop.
Save tacoverdo/c5da4fe2f7f3b7bd0e02c084dd643886 to your computer and use it in GitHub Desktop.
<p>[et_pb_section admin_label="Section" fullwidth="off" specialty="off" transparent_background="on" allow_player_pause="off" inner_shadow="on" parallax="off" parallax_method="off" padding_mobile="off" make_fullwidth="off" use_custom_width="off" width_unit="on" make_equal="off" use_custom_gutter="off" gutter_width="3"][et_pb_row admin_label="Row" make_fullwidth="off" use_custom_width="off" width_unit="on" use_custom_gutter="off" padding_mobile="off" allow_player_pause="off" parallax="off" parallax_method="off" make_equal="off" parallax_1="off" parallax_method_1="off" column_padding_mobile="on" custom_margin="0px||0px|" custom_padding="||10px|"][et_pb_column type="4_4"][et_pb_blurb admin_label="Blurb" url_new_window="off" use_icon="on" icon_color="#005275" use_circle="off" circle_color="#1d1aeb" use_circle_border="off" circle_border_color="#1d1aeb" icon_placement="top" animation="top" background_layout="dark" text_orientation="center" use_icon_font_size="on" background_color="rgba(0,82,117,0.2)" use_border_color="on" border_color="#005275" border_style="outset" font_icon="%%249%%" custom_margin="10px||130px|" custom_padding="30px|30px|30px|30px" icon_font_size="50" header_line_height="1.4em"]</p><h1 class=" editor" style="text-align: center;" contenteditable="true">Golf timeline and milestones</h1><p>[/et_pb_blurb][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section admin_label="Section" fullwidth="off" specialty="on" transparent_background="off" allow_player_pause="off" inner_shadow="off" parallax="off" parallax_method="off" padding_mobile="off" make_fullwidth="off" use_custom_width="off" width_unit="on" make_equal="off" use_custom_gutter="off" parallax_1="off" parallax_method_1="off" parallax_2="off" parallax_method_2="off" background_color_2="#f1f8e9" custom_padding="0px|||" background_color="#ffffff" padding_bottom_2="0px"][et_pb_column type="3_4" specialty_columns="3"][et_pb_row_inner admin_label="Row" padding_mobile="off" use_custom_gutter="off" gutter_width="3" column_padding_mobile="on" custom_margin="0px||0px|" make_equal="off" parallax_1="off" parallax_method_1="off" padding_top_1="0px" padding_bottom_1="0px" custom_padding="0px||0px|"][et_pb_column_inner type="1_2" saved_specialty_column_type="3_4"][et_pb_text admin_label="Home page - first text block " saved_tabs="all" background_layout="light" text_orientation="left" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="0px||0px|" custom_padding="0px||0px|"]</p><h2>A journey through the golf timeline</h2><p>Here you will find a golf timeline - a record of the major golfing milestones that have occurred since written golf records began. </p><p>When did golf begin? Where did it start? How did it evolve? Who were the golfing pioneers? Where and when were the first golf clubs formed?</p><p>You will find the answers here.</p><p>You can find more details of the events that are listed in <a href="http://www.egolfshare.com/#content_43139692">The History of Golf</a>. </p><p>[/et_pb_text][/et_pb_column_inner][et_pb_column_inner type="1_2" saved_specialty_column_type="3_4"][et_pb_image admin_label="Image" src="http://www.egolfsociety.com/wp-content/uploads/2016/03/Girl-with-a-Golf-Club-painted-1595-600.jpg" alt="Painting of a Girl with a Golf Club, 1595, early on in the golf timeline" title_text="Painting of a Girl with a Golf Club, 1595" show_in_lightbox="on" url_new_window="off" use_overlay="off" animation="off" sticky="off" align="center" force_fullwidth="off" always_center_on_mobile="on" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="40px|||" max_width="600px" saved_tabs="all"] [/et_pb_image][et_pb_text admin_label="Image Caption Text" background_layout="light" text_orientation="left" text_text_color="#2a4503" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="0px||40px|" saved_tabs="all" text_font_size_last_edited="on|desktop" text_font="PT Sans||||"]</p><p style="text-align: center;">Painting of a Girl with a Golf Club, 1595</p><p style="text-align: center;">By unknown Netherlands artist</p><p style="text-align: center;"><span style="font-size: 10pt; font-family: verdana,geneva,sans-serif; color: #000000;">Reproduced from the book "A Golfer’s Gallery of Old Masters", </span><span style="font-size: 10pt; font-family: verdana,geneva,sans-serif; color: #000000;">by Bernard Darwin</span></p><p>[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][/et_pb_column][et_pb_column type="1_4"][et_pb_text admin_label="egolfshare Sidebar Header" saved_tabs="all" global_module="109" background_layout="light" text_orientation="left" text_text_color="#151555" use_border_color="off" border_color="#ffffff" border_style="solid" custom_margin="0px||0px|" custom_padding="5px|10px|10px|10px"]</p><h3 style="text-align: center;">Have Your Say</h3><p>[/et_pb_text][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" text_font_size="15" use_border_color…hover="0" top_padding="100px" bottom_padding="100px"] [et_pb_slide background_position="center_right" background_size="default" background_color="rgba(0,82,117,0.2)" alignment="center" background_layout="dark" allow_player_pause="off" header_font_select="default" body_font_select="default" custom_button="off" button_font_select="default" button_use_icon="default" button_icon_placement="right" button_on_hover="on" header_font_size="1" body_line_height="40" use_bg_overlay="off" use_text_overlay="off" text_border_radius="3" header_font="||||" header_font_size_tablet="1" header_font_size_phone="1" body_font="||||" body_line_height_tablet="40" body_line_height_phone="40" button_font="||||" image="http://www.egolfsociety.com/wp-content/uploads/2015/12/eGolfShareHeader.jpg" image_alt="EGolfShare Logo"]</p><h3 style="text-align: center;">Designed and Created by a Golfer, for Golfers</h3><p>[/et_pb_slide] [/et_pb_fullwidth_slider][/et_pb_section][et_pb_section global_module="1076" admin_label="Golf Club Captain's Page bottom Index" fullwidth="off" specialty="on" transparent_background="off" background_color="#ffffff" allow_player_pause="off" inner_shadow="off" parallax="off" parallax_method="off" custom_padding="0px|||" padding_mobile="off" make_fullwidth="off" use_custom_width="off" width_unit="on" make_equal="off" use_custom_gutter="off" parallax_1="off" parallax_method_1="off" parallax_2="off" parallax_method_2="off" disabled="off" disabled_on="||off"][et_pb_column type="3_4" specialty_columns="3"][et_pb_row_inner admin_label="Row" padding_mobile="on" use_custom_gutter="off" column_padding_mobile="on" make_equal="off" parallax_1="off" parallax_method_1="off" padding_top_1="5px" padding_bottom_1="5px" custom_padding="0px||0px|" custom_margin="0px||0px|"][et_pb_column_inner type="4_4" saved_specialty_column_type="3_4"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="on" border_color="#010037" border_style="outset" background_color="#005275" border_width="5px" custom_padding="20px|20px|20px|20px"]</p><p style="text-align: center;"><span style="font-size: 14pt; color: #fbc02d; font-family: verdana,geneva,sans-serif;">Golf Club Captains</span></p><p style="text-align: center;"><span style="color: #fbc02d; font-family: verdana,geneva,sans-serif; font-size: 12pt;">Where do you want to go next?</span></p><p>[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner admin_label="Row" padding_mobile="on" use_custom_gutter="off" column_padding_mobile="on" make_equal="on" parallax_1="off" parallax_method_1="off" parallax_2="off" parallax_method_2="off" parallax_3="off" parallax_method_3="off" module_class="white_hyperlinks " custom_margin="0px|||"][et_pb_column_inner type="1_3" saved_specialty_column_type="3_4"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="on" border_color="#010037" border_style="outset" custom_padding="20px|20px|20px|20px" background_color="#005275" border_width="5px"]</p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="Golf club captain" href="http://www.egolfsociety.com/golf-club-captain/">Golf Club Captain - An introduction</a></span></p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="Captains speech" href="http://www.egolfsociety.com/captains-speech/" data-wplink-edit="true">Captain's Speeches</a></span></p><p>[/et_pb_text][/et_pb_column_inner][et_pb_column_inner type="1_3" saved_specialty_column_type="3_4"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="on" border_color="#010037" border_style="outset" custom_padding="20px|20px|20px|20px" background_color="#005275" border_width="5px"]</p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="Captains day planning" href="http://www.egolfsociety.com/captains-day-planning/">The Captain's "Big" Day</a></span></p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="Captains Away Day" href="http://www.egolfsociety.com/captains-away-day/">Captain's Away day</a></span></p><p>[/et_pb_text][/et_pb_column_inner][et_pb_column_inner type="1_3" saved_specialty_column_type="3_4"][et_pb_text admin_label="Text" background_layout="light" text_orientation="left" use_border_color="on" border_color="#010037" border_style="outset" custom_padding="20px|20px|20px|20px" background_color="#005275" border_width="5px"]</p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="Golf Club Captain’s role" href="http://www.egolfsociety.com/golf-club-captains-role/">The Role of the Captain</a></span></p><p style="text-align: center;"><span style="font-size: 12pt;"><a title="golf club captain duties" href="http://www.egolfsociety.com/golf-club-captain-duties/">The Duties of the Captain</a></span></p><p>[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][/et_pb_column][et_pb_column type="1_4"][/et_pb_column][/et_pb_section]</p>
@atimmer
Copy link

atimmer commented Jul 1, 2016

console.time( "regex" );
var regex = new RegExp( "\[et_pb_row [^\]]*?\].*?\[\/et_pb_row\]" );
text2.match( regex );
console.timeEnd( "regex" );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment