Seems regular expressions don't work in posit Workbench - 'find in files'

I am trying simple things like

n = \d

and It fails. I've tried

n = \d

n = [\d]

(which matched n = d the letter, no thanks)

What am I missing?

Try \\d for a literal \.

Theres a discussion here :
r - Regular expression in Rstudio's "Find in files" - Stack Overflow

so you can do

n = [0-9]

Thanks friends. This ended up working for me:


As the old joke goes, a programmer with a problem says 'I know, I'll use regular expressions'. Now he has 2 problems....

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.