regex
var r = 'That said, if you’re surveying your entire database of 10,000 customers, then it isn’t feasible to sit down and sift through all the results yourself. Here, automating the process using an NLP-equipped tool makes more sense.[/vc_column_text][/vc_column][/vc_row][vc_row type="in_container" full_screen_row_position="middle" scene_position="center" text_color="dark" text_align="left" overlay_strength="0.3" shape_divider_position="bottom" bg_image_animation="none"][vc_column column_padding="padding-2-percent" column_padding_position="all" background_color="#F3F2F3" background_color_opacity="1" background_hover_color_opacity="1" column_link_target="_self" column_shadow="none" column_border_radius="none" width="1/1" tablet_width_inherit="default" tablet_text_alignment="default" phone_text_alignment="default" column_border_width="none" column_border_style="solid" bg_image_animation="none"][vc_column_text]'.replace(/ [[^]]]/gi, '');
console.log(r);