- Save Regexctrl+s
- Go to library entry

- PCRE2 (PHP >=7.3)
- PCRE (PHP <7.3)
- ECMAScript (JavaScript)
- Python
- Golang
- Java 8

- Match
- Substitution
- List
- Unit Tests

Sponsor

Jamstack at Scale

/

(?<ModelCode>\w{1})\((?<CountryCode>\w{3,4})\)\-(?<ModelNumber>\w{2})(\-(?<StackerType>\w{2}))? (?<InterfaceType>ID003\-\d{2})v(?<SoftwareVersion>\d{3}\-\d{2}) (?<SotfwareDate>\w+) (?<Crc>\w{4})

/

i

Named Capture Group ModelCode

(?<ModelCode>\w{1})

\w

matches any word character (equivalent to [a-zA-Z0-9_]){1} matches the previous token exactly one time (meaningless quantifier)

\( matches the character ( with index 40_{10} (28_{16} or 50_{8}) literally (case insensitive)

Named Capture Group CountryCode

(?<CountryCode>\w{3,4})

\w

matches any word character (equivalent to [a-zA-Z0-9_]){3,4} matches the previous token between 3 and 4 times, as many times as possible, giving back as needed (greedy)

\) matches the character ) with index 41_{10} (29_{16} or 51_{8}) literally (case insensitive)

\- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case insensitive)

Named Capture Group ModelNumber

(?<ModelNumber>\w{2})

\w

matches any word character (equivalent to [a-zA-Z0-9_]){2} matches the previous token exactly 2 times

4th Capturing Group

(\-(?<StackerType>\w{2}))?

? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)

\- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case insensitive)

Named Capture Group StackerType

(?<StackerType>\w{2})

\w

matches any word character (equivalent to [a-zA-Z0-9_]){2} matches the previous token exactly 2 times

matches the character with index 32_{10} (20_{16} or 40_{8}) literally (case insensitive)

Named Capture Group InterfaceType

(?<InterfaceType>ID003\-\d{2})

ID003

matches the characters ID003 literally (case insensitive)\- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case insensitive)

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

v matches the character v with index 118_{10} (76_{16} or 166_{8}) literally (case insensitive)

Named Capture Group SoftwareVersion

(?<SoftwareVersion>\d{3}\-\d{2})

\d

matches a digit (equivalent to [0-9]){3} matches the previous token exactly 3 times

\- matches the character - with index 45_{10} (2D_{16} or 55_{8}) literally (case insensitive)

\d

matches a digit (equivalent to [0-9]){2} matches the previous token exactly 2 times

matches the character with index 32_{10} (20_{16} or 40_{8}) literally (case insensitive)

Named Capture Group SotfwareDate

(?<SotfwareDate>\w+)

\w

matches any word character (equivalent to [a-zA-Z0-9_])+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)

matches the character with index 32_{10} (20_{16} or 40_{8}) literally (case insensitive)

Named Capture Group Crc

(?<Crc>\w{4})

\w

matches any word character (equivalent to [a-zA-Z0-9_]){4} matches the previous token exactly 4 times

Global pattern flags

i modifier: **i**nsensitive. Case insensitive match (ignores case of [a-zA-Z])

Your regular expression does not match the subject string.Try launching the debugger to find out why.

/

/

i

Please wait while the app is loading...