[R] Help with complicated regular expression
Dennis Fisher
fisher at plessthan.com
Fri Nov 13 15:12:35 CET 2009
Colleagues,
I am using R (2.9.2, all platforms) to search for a complicated text
string using regular expressions. I would appreciate any help you can
provide.
The string consists of the following elements:
SOMEWORDWITHNOSPACES
any number of spaces and/or tabs
(
any number of spaces and/or tabs
integer
any number of spaces and/or tabs
)
Examples include:
WORD ( 123 )
WORD(1 )
WORD\t ( 21\t)
WORD \t ( 1 \t )
etc.
I don't need to substitute anything, only to identify if such a string
exists.
Any help with regular expressions would be appreciated.
Thanks.
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com
More information about the R-help
mailing list