Added solution to reuse-patterns-using-capture-groups.english.md (#35144)
* Update reuse-patterns-using-capture-groups.english.md * included whole solution
This commit is contained in:
		
				
					committed by
					
						
						Randell Dawson
					
				
			
			
				
	
			
			
			
						parent
						
							380ffd9db3
						
					
				
				
					commit
					bca4d896cc
				
			@@ -70,6 +70,8 @@ let result = reRegex.test(repeatNum);
 | 
			
		||||
<section id='solution'>
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
// solution required
 | 
			
		||||
let repeatNum = "42 42 42";
 | 
			
		||||
let reRegex = /^(\d+)\s\1\s\1$/;
 | 
			
		||||
let result = reRegex.test(repeatNum);
 | 
			
		||||
```
 | 
			
		||||
</section>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user