Regular Expression -match operator

Welcome Forums General PowerShell Q&A Regular Expression -match operator

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
4 years, 2 months ago.

  • Author
    Posts
  • #19012

    Participant
    Points: 0
    Rank: Member

    Hi All ,

    002707+002781+002773+002737+002728+002783+002774+002741+002960+002957 – Canadian Consumer Protection (FCAC) – String .

    I'm trying to use -match operator to only match if there is only 6 DIGITS in the string above . I'm having some problems using Regular Expression , any ideas would be appreciated .

    Regards

    Mariusz

  • #19013

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    /d{6}

    Matches exactly 6 digits. But the string above has 60 digits. I'm not sure I understand.

The topic ‘Regular Expression -match operator’ is closed to new replies.