Closed bes827 closed 2 years ago
unable to find the regex to define the number of digits ranging (5-8), the example below only includes the 5 digits.
\\d{5,8}
says 5 to 8 digits
I believe that the code I use does not search in text after a new line, is there a way to fix that?
Not sure what you mean. Can you povide an example that fails and your desired output?
Closing because OP never responded for clarification
Hello This package has been very helpful and efficient, I am able to achieve a lot with much less code than with stringr or with other packages. I am trying to perform the task below which is a bit complex:
I have a large number of text files that I converted to a dataset and now trying to extract a particular number (serial number, the unique pattern for this is the first occurrence of a number between 5-8 digits). I tried couple of codes, including the sapply function you posted in the previous question, but no luck so far. The issues I am running through are:
thanks a lot