Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?<version>[0-9]*.[0-9]*).(?<patch>[0-9]*).(?<build>[0-9]*)
/
g

Description

Expression parses AssemblyVersion with following composition structure <Major>.<Minor>.<Patch>.<Build> into 3 groups

  1. 'version' - <Major>.<Minor>
  2. 'patch' - <Patch>
  3. 'build' - <Build>
Submitted by Headspin - 8 years ago