trinker / termco

Regular Expression Counts of Terms and Substrings
Other
25 stars 5 forks source link

colo with one term does not wrap quotes arounf the clipboard output #50

Closed trinker closed 7 years ago

trinker commented 7 years ago
colo('fff')

## yeilds
## fff

## rather than
## "fff"
trinker commented 7 years ago

special chars not respected for single string

colo("(\\bh(er|is)|\'s) lecture\\s")
## "(\bh(er|is)|'s) lecture\s"

colo("(\\bh(er|is)|\'s) lecture", 'dog')
## "(((\\bh(er|is)|'s) lecture.*dog)|(dog.*(\\bh(er|is)|'s) lecture))"