JavaScript Regular Expressions

Use regular expressions to search a string for HTML tags (greater and less than symbols: hexadecimal numbers 003E > and 003C <, respectively) remove tags and replace with null strings. The regular expression /(<([^>]+)>)/ig uses the first capturing group to search for a < symbol (u003C), then the second capturing group searches for a set containing anything that is not > (u003E) indicated by the [^] (negated set) and + (quantifier: match 1 or more), then conlcudes the search with a >. The modifiers i and g perform case-insensitive and global matching, respectively.

String with HTML tags removed