0

Question: how do I filter 3 strings at the same time 'stringtomatch1' and 'stringtomatch2' and 'stringtomatch3' ?

The following lets you filter only 1 string at a time:

[svn list -R PATHTOREPOSITORY | where {$_ -match 'stringtomatch'}]

1 Answer 1

2

-match takes a regex as an argument, so just use the logical OR operator, |

svn list -R PATHTOREPOSITORY | ? {$_ -match 'stringtomatch1|stringtomatch2|stringtomatch3' }
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you very much. Works like a charm
@bestili:Give the man some credit and accept his answer, then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.