[R] matching problem
tom.olsson at dnbnor.com
Fri Jun 27 16:11:23 CEST 2008
Thanks guys, all of you. You have just made this weekend a much more happier
Hans-Jörg Bibiko wrote:
> On 27 Jun 2008, at 13:56, Tom.O wrote:
>> Well I have tried that and it's unfortuanally not the solution.
>> This return all the characters in the string, but I dont want the
>> after the ending non-character symbol. Only the starting characters
>> ore of
>>> gsub("\\W*","", myexstrings,perl=T)
>>  "AAAAA" "BBBBB" "CCC" "ddd"
> try this one:
> gsub("^\\W*(\\w+)\\W.*","\\1", myexstrings,perl=T)
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/matching-problem-tp18152158p18156086.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help