[R] Generalizing a regex for retrieving numbers with and without scientific notation

2014-02-19 Thread Morway, Eric
I'm trying to extract all of the values from edm in the example below. However, the first attempt only retrieves the final number in the sequence since it is recorded using scientific notation. The second attempt retrieves all of the numbers, but omits the scientific notation component of the

Re: [R] Generalizing a regex for retrieving numbers with and without scientific notation

2014-02-19 Thread Marc Schwartz
On Feb 19, 2014, at 12:26 PM, Morway, Eric emor...@usgs.gov wrote: I'm trying to extract all of the values from edm in the example below. However, the first attempt only retrieves the final number in the sequence since it is recorded using scientific notation. The second attempt retrieves