chore: reg_exp example included
This commit is contained in:
		
							parent
							
								
									8a23c9d4cc
								
							
						
					
					
						commit
						c29aed3316
					
				@ -61,6 +61,19 @@ pub const DEFAULT_REG_EXP: &str = r"(\d+) (\w+) (\d+)";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
**reg_exp** can be provided but as a **regex** expresion from **string**, if it can not be converted parser exit.
 | 
					**reg_exp** can be provided but as a **regex** expresion from **string**, if it can not be converted parser exit.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To solve this
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```toml
 | 
				
			||||||
 | 
					be_quiet = false
 | 
				
			||||||
 | 
					[[targets]]
 | 
				
			||||||
 | 
					input = "input.txt"
 | 
				
			||||||
 | 
					# \ has to be escaped
 | 
				
			||||||
 | 
					reg_exp = "(\\d+) (\\w+) (\\d+)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[[targets]]
 | 
				
			||||||
 | 
					input = "input_2.txt"
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### CAUTION
 | 
					#### CAUTION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Command line options have precedence over **config path** settings. <br>
 | 
					Command line options have precedence over **config path** settings. <br>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								howto.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								howto.md
									
									
									
									
									
								
							@ -63,6 +63,19 @@ pub const DEFAULT_REG_EXP: &str = r"(\d+) (\w+) (\d+)";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
**reg_exp** can be provided but as a **regex** expresion from **string**, if it can not be converted parser exit.
 | 
					**reg_exp** can be provided but as a **regex** expresion from **string**, if it can not be converted parser exit.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To solve this 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```toml
 | 
				
			||||||
 | 
					be_quiet = false 
 | 
				
			||||||
 | 
					[[targets]]
 | 
				
			||||||
 | 
					input = "input.txt"
 | 
				
			||||||
 | 
					# \ has to be escaped 
 | 
				
			||||||
 | 
					reg_exp = "(\\d+) (\\w+) (\\d+)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[[targets]]
 | 
				
			||||||
 | 
					input = "input_2.txt"
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> [!CAUTION]
 | 
					> [!CAUTION]
 | 
				
			||||||
> Command line options have precedence over **config path** settings. <br>
 | 
					> Command line options have precedence over **config path** settings. <br>
 | 
				
			||||||
> Be careful with the combinations
 | 
					> Be careful with the combinations
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user