Learn R Programming

⚠️There's a newer version (0.7.10) of this package.Take me there.

qdapRegex (version 0.4.0)

Regular Expression Removal, Extraction, and Replacement Tools

Description

A collection of regular expression tools associated with the 'qdap' package that may be useful outside of the context of discourse analysis. Tools include removal/extraction/replacement of abbreviations, dates, dollar amounts, email addresses, hash tags, numbers, percentages, citations, person tags, phone numbers, times, and zip codes.

Copy Link

Version

Install

install.packages('qdapRegex')

Monthly Downloads

9,376

Version

0.4.0

License

GPL-2

Maintainer

Tyler Rinker

Last Published

July 18th, 2015

Functions in qdapRegex (0.4.0)

c.extracted

Combines a extracted Object
is.regex

Test Regular Expression Validity
qdapRegex

qdapRegex: Regular Expression Removal, Extraction, & Replacement Tools for the qdap Package
print.regexr

Prints a regexr Object
pastex

Paste Regular Expressions
rm_non_ascii

Remove/Replace/Extract Non-ASCII
regex_usa

Canned Regular Expressions (United States of America)
rm_percent

Remove/Replace/Extract Percentages
regex_cheat

A dataset containing the regex chunk name, the regex string, and a description of what the chunk does.
cheat

A Cheat Sheet of Common Regex Task Chunks
TC

Upper/Lower/Title Case
group

Group Regular Expressions
rm_caps

Remove/Replace/Extract All Caps
S

Use C-style String Formatting Commands
print.explain

Prints a explain object
bind

Add Left/Right Character(s) Boundaries
rm_endmark

Remove/Replace/Extract Endmarks
rm_dollar

Remove/Replace/Extract Dollars
escape

Escape Strings From Parsing
print.extracted

Prints a extracted Object
rm_citation_tex

Remove/Replace/Extract LaTeX Citations
rm_nchar_words

Remove/Replace/Extract N Letter Words
rm_emoticon

Remove/Replace/Extract Emoticons
rm_bracket

Remove/Replace/Extract Brackets
rm_url

Remove/Replace/Extract URLs
rm_citation

Remove/Replace/Extract Citations
rm_number

Remove/Replace/Extract Numbers
rm_city_state_zip

Remove/Replace/Extract City, State, & Zip
rm_time

Remove/Replace/Extract Time
rm_postal_code

Remove/Replace/Extract Postal Codes
rm_repeated_phrases

Remove/Replace/Extract Repeating Phrases
rm_repeated_characters

Remove/Replace/Extract Words With Repeating Characters
rm_title_name

Remove/Replace/Extract Title + Person Name
rm_zip

Remove/Replace/Extract Zip Codes
rm_date

Remove/Replace/Extract Dates
rm_phone

Remove/Replace/Extract Phone Numbers
rm_abbreviation

Remove/Replace/Extract Abbreviations
rm_caps_phrase

Remove/Replace/Extract All Caps Phrases
rm_repeated_words

Remove/Replace/Extract Repeating Words
rm_email

Remove/Replace/Extract Email Addresses
rm_default

Remove/Replace/Extract Template
rm_white

Remove/Replace/Extract White Space
group_or

Group Wrap and `or` Concatenate Elements
validate

Regex Validation Function Generator
rm_between

Remove/Replace/Extract Strings Between 2 Markers
rm_hash

Remove/Replace/Extract Hash Tags
rm_

Remove/Replace/Extract Function Generator
bind_or

Boundary Wrap (Bind) and `or` Concatenate Elements
rm_tag

Remove/Replace/Extract Person Tags
rm_city_state

Remove/Replace/Extract City & State
explain

Visualize Regular Expressions
rm_non_words

Remove/Replace/Extract Non-Words
grab

Grab Regular Expressions from Dictionaries
regex_supplement

Supplemental Canned Regular Expressions