Regex tester
Pattern
Input
0.0.4
1.2.3
10.20.30
1.1.2-prerelease+meta
1.1.2+meta
1.1.2+meta-valid
1.0.0-alpha
1.0.0-beta
1.0.0-alpha.beta
1.0.0-alpha.beta.1
1.0.0-alpha.1
1.0.0-alpha0.valid
1.0.0-alpha.0valid
1.0.0-alpha-a.b-c-somethinglong+build.1-aef.1-its-okay
1.0.0-rc.1+build.1
2.0.0-rc.1+build.123
1.2.3-beta
10.2.3-DEV-SNAPSHOT
1.2.3-SNAPSHOT-123
1.0.0
2.0.0
1.1.7
2.0.0+build.1848
2.0.1-alpha.1227
1.0.0-alpha+beta
1.2.3----RC-SNAPSHOT.12.9.1--.12+788
1.2.3----R-S.12.9.1--.12+meta
1.2.3----RC-SNAPSHOT.12.9.1--.12
1.0.0+0.build.1-rc.10000aaa-kk-0.1
99999999999999999999999.999999999999999999.99999999999999999
1.0.0-0A.is.legal
Options
Replacement
Click the context tab to see replacements.
47 matches found in about 4 milliseconds.
IndexPositionMatched String$1$2$3$4
000.0.4004empty string
171.2.3123empty string
21410.20.30102030empty string
3241.1.2-prerelease112prerelease
4471.1.2112empty string
5591.1.2112empty string
6771.0.0-alpha100alpha
7901.0.0-beta100beta
81021.0.0-alpha.beta100alpha.beta
91201.0.0-alpha.beta.1100alpha.beta.1
101401.0.0-alpha.1100alpha.1
111551.0.0-alpha0.valid100alpha0.valid
121751.0.0-alpha.0valid100alpha.0valid
131951.0.0-alpha-a.b-c-somethinglong100alpha-a.b-c-somethinglong
1423311empty stringempty stringempty string
1523911empty stringempty stringempty string
162511.0.0-rc.1100rc.1
1726811empty stringempty stringempty string
182712.0.0-rc.1200rc.1
19288123123empty stringempty stringempty string
202931.2.3-beta123beta
2130510.2.3-DEV-SNAPSHOT1023DEV-SNAPSHOT
223261.2.3-SNAPSHOT-123123SNAPSHOT-123
233461.0.0100empty string
243532.0.0200empty string
253601.1.7117empty string
263672.0.0200empty string
2737918481848empty stringempty stringempty string
283852.0.1-alpha.1227201alpha.1227
294031.0.0-alpha100alpha
304211.2.3123empty string
3144212.9.11291empty string
324511212empty stringempty stringempty string
33454788788empty stringempty stringempty string
344591.2.3123empty string
3547212.9.11291empty string
364811212empty stringempty stringempty string
374901.2.3123empty string
3851112.9.11291empty string
395201212empty stringempty stringempty string
405241.0.0100empty string
4153000empty stringempty stringempty string
4253811empty stringempty stringempty string
435431000010000empty stringempty stringempty string
445550.101empty stringempty string
4556099999999999999999999999.999999999999999999.999999999999999999999999999999999999999999999999999999999999999999999999999empty string
466221.0.0-0A.is.legal1000A.is.legal
0.0.41.2.310.20.301.1.2-prerelease+meta
​1.1.2+meta
​1.1.2+meta-valid
​1.0.0-alpha1.0.0-beta1.0.0-alpha.beta1.0.0-alpha.beta.11.0.0-alpha.11.0.0-alpha0.valid1.0.0-alpha.0valid1.0.0-alpha-a.b-c-somethinglong+build.1-aef.1-its-okay
​1.0.0-rc.1+build.12.0.0-rc.1+build.1231.2.3-beta10.2.3-DEV-SNAPSHOT1.2.3-SNAPSHOT-1231.0.02.0.01.1.72.0.0+build.18482.0.1-alpha.12271.0.0-alpha+beta
​1.2.3----RC-SNAPSHOT.12.9.1--.12+7881.2.3----R-S.12.9.1--.12+meta
​1.2.3----RC-SNAPSHOT.12.9.1--.121.0.0+0.build.1-rc.10000aaa-kk-0.199999999999999999999999.999999999999999999.999999999999999991.0.0-0A.is.legal
  1. empty string
  2. 0
  3. 0
  4. 4
  5. whitespace
  6. 1
  7. 2
  8. 3
  9. whitespace
  10. 10
  11. 20
  12. 30
  13. whitespace
  14. 1
  15. 1
  16. 2
  17. prerelease
  18. +meta
  19. 1
  20. 1
  21. 2
  22. +meta
  23. 1
  24. 1
  25. 2
  26. +meta-valid
  27. 1
  28. 0
  29. 0
  30. alpha
  31. whitespace
  32. 1
  33. 0
  34. 0
  35. beta
  36. whitespace
  37. 1
  38. 0
  39. 0
  40. alpha.beta
  41. whitespace
  42. 1
  43. 0
  44. 0
  45. alpha.beta.1
  46. whitespace
  47. 1
  48. 0
  49. 0
  50. alpha.1
  51. whitespace
  52. 1
  53. 0
  54. 0
  55. alpha0.valid
  56. whitespace
  57. 1
  58. 0
  59. 0
  60. alpha.0valid
  61. whitespace
  62. 1
  63. 0
  64. 0
  65. alpha-a.b-c-somethinglong
  66. +build.
  67. 1
  68. -aef.
  69. 1
  70. -its-okay
  71. 1
  72. 0
  73. 0
  74. rc.1
  75. +build.
  76. 1
  77. whitespace
  78. 2
  79. 0
  80. 0
  81. rc.1
  82. +build.
  83. 123
  84. whitespace
  85. 1
  86. 2
  87. 3
  88. beta
  89. whitespace
  90. 10
  91. 2
  92. 3
  93. DEV-SNAPSHOT
  94. whitespace
  95. 1
  96. 2
  97. 3
  98. SNAPSHOT-123
  99. whitespace
  100. 1
  101. 0
  102. 0
  103. whitespace
  104. 2
  105. 0
  106. 0
  107. whitespace
  108. 1
  109. 1
  110. 7
  111. whitespace
  112. 2
  113. 0
  114. 0
  115. +build.
  116. 1848
  117. whitespace
  118. 2
  119. 0
  120. 1
  121. alpha.1227
  122. whitespace
  123. 1
  124. 0
  125. 0
  126. alpha
  127. +beta
  128. 1
  129. 2
  130. 3
  131. ----RC-SNAPSHOT.
  132. 12
  133. 9
  134. 1
  135. --.
  136. 12
  137. +
  138. 788
  139. whitespace
  140. 1
  141. 2
  142. 3
  143. ----R-S.
  144. 12
  145. 9
  146. 1
  147. --.
  148. 12
  149. +meta
  150. 1
  151. 2
  152. 3
  153. ----RC-SNAPSHOT.
  154. 12
  155. 9
  156. 1
  157. --.
  158. 12
  159. whitespace
  160. 1
  161. 0
  162. 0
  163. +
  164. 0
  165. .build.
  166. 1
  167. -rc.
  168. 10000
  169. aaa-kk-
  170. 0
  171. 1
  172. whitespace
  173. 99999999999999999999999
  174. 999999999999999999
  175. 99999999999999999
  176. whitespace
  177. 1
  178. 0
  179. 0
  180. 0A.is.legal
  181. empty string