Regex tester
Pattern
Input
1.0.0-alpha
1.0.0-alpha.1
1.0.0-0.3.7
1.0.0-x.7.z.92
1.0.0-alpha+001
1.0.0+20130313144700
1.0.0-beta+exp.sha.5114f85.
Options
Replacement
Click the context tab to see replacements.
7 matches found in about 1 millisecond.
IndexPositionMatched String${Major}${Minor}${Patch}${PreRelease}${Meta}
001.0.0-alpha100alphaempty string
1131.0.0-alpha.1100alpha.1empty string
2281.0.0-0.3.71000.3.7empty string
3411.0.0-x.7.z.92100x.7.z.92empty string
4571.0.0-alpha+001100alpha001
5741.0.0+20130313144700100empty string20130313144700
6961.0.0-beta+exp.sha.5114f85.100betaexp.sha.5114f85.
1.0.0-alpha1.0.0-alpha.11.0.0-0.3.71.0.0-x.7.z.921.0.0-alpha+0011.0.0+201303131447001.0.0-beta+exp.sha.5114f85.
  1. empty string
  2. 1
  3. 0
  4. 0
  5. alpha
  6. whitespace
  7. 1
  8. 0
  9. 0
  10. alpha.1
  11. whitespace
  12. 1
  13. 0
  14. 0
  15. 0.3.7
  16. whitespace
  17. 1
  18. 0
  19. 0
  20. x.7.z.92
  21. whitespace
  22. 1
  23. 0
  24. 0
  25. alpha
  26. 001
  27. whitespace
  28. 1
  29. 0
  30. 0
  31. 20130313144700
  32. whitespace
  33. 1
  34. 0
  35. 0
  36. beta
  37. exp.sha.5114f85.
  38. empty string