Displaying 1 result from an estimated 1 matches for "abcxx".
Did you mean:
abc
2004 Oct 27
1
regexp,grep: capturing more than one substring
Hello,
I would like to have a function that retrieve matching strings in the same way as with java.util.regex (java 1.4.2).
Example:
f('^.*(xx?)\\.([0-9]*)$','abcxx.785')
=>
c('xx','785')
First of all: Is it possible to achiev this with grep(... perl=TRUE,value=TRUE )?
As I would call this function very often with large data, I'm reluctant to use Sjava for performance reasons.
Is this a wrong assumption that using Java directly wo...