trinker / qdapRegex

qdapRegex is a collection of regular expression tools associated with the qdap package that may be useful outside of the context of discourse analysis.
50 stars 4 forks source link

Add comma to rm_dollar regex #21

Closed trinker closed 8 years ago

trinker commented 8 years ago
x <- c("$555,000Previous Price: $575,000", "$865,000Previous Price: $875,000", 
"$995,000 ", "$1,325,000Previous Price: $1,459,000.33")

qdapRegex::ex_dollar(x)
qdapRegex::ex_dollar(x, pattern="\\$\\(?[0-9.,]+\\)?")