qdapRegex is a collection of regex tools associated with the qdap package that may be useful outside of the context of discourse analysis. Tools include removal/extraction/replacement of emails addresses, person tags, hash tags, dollar amounts, percentages, times, zip codes, and phone numbers.
Download the development version of qdapRegex here
Function for removing/extracting/replacing text using regular expressions.
rm_default
rm_
rm_abbreviation
rm_between
rm_between_multiple
rm_bracket
rm_angle
rm_bracket_multiple
rm_curly
rm_round
rm_square
rm_caps
rm_caps_phrase
rm_citation
rm_citation_tex
rm_city_state
rm_city_state_zip
rm_date
rm_dollar
rm_email
rm_emoticon
rm_endmark
rm_hash
rm_nchar_words
rm_non_ascii
rm_non_words
rm_number
as_numeric
as_numeric2
rm_percent
rm_phone
rm_postal_code
rm_repeated_characters
rm_repeated_phrases
rm_repeated_words
rm_tag
rm_time
rm_transcript_time
as_time
as_time2
rm_title_name
rm_url
rm_twitter_url
rm_white
rm_white_bracket
rm_white_colon
rm_white_comma
rm_white_endmark
rm_white_lead
rm_white_trail
rm_white_lead_trail
rm_white_multiple
rm_white_punctuation
rm_zip
Functions for testing regular expressions.
Functions used within qdapRegex that are intended for education around regular expressions.
cheat
grab
explain
Other functions used within qdapRegex that are not specific to removing/extracting/replacing text with regular expressions.
bind
bind_or
grab
group
group_or
escape
pastex
%|%
%+%
S
TC
L
U
Data sets with canned regular expressions.
regex_cheat
regex_usa
regex_supplement