mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<h3>regexp_substr() function</h3>
 | 
						|
Returns the portion of a string which matches a supplied regular expression.
 | 
						|
 | 
						|
<p><h4>Syntax</h4>
 | 
						|
     regexp_substr(<i>string,regex</i>)</p>
 | 
						|
 | 
						|
<p><h4>Arguments</h4>
 | 
						|
<!-- List args for functions here-->
 | 
						|
<i>  string</i> → is string.  The input string.<br>
 | 
						|
<i>  regex</i> → is string.  The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.<br>
 | 
						|
 | 
						|
<p><h4>Example</h4>
 | 
						|
<!-- Show example of function.-->
 | 
						|
     regexp_substr('abc123','(\\d+)') → '123'</p>
 |