mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 02:15:10 +00:00 
			
		
		
		
	Closes #14283: match() and search() are regex methods, not match methods.
This commit is contained in:
		
							parent
							
								
									7441a7aedd
								
							
						
					
					
						commit
						69c7a69cbe
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -944,16 +944,15 @@ support the following methods and attributes: | ||||||
| .. attribute:: match.pos | .. attribute:: match.pos | ||||||
| 
 | 
 | ||||||
|    The value of *pos* which was passed to the :meth:`~regex.search` or |    The value of *pos* which was passed to the :meth:`~regex.search` or | ||||||
|    :meth:`~regex.match` method of a :ref:`match object <match-objects>`.  This |    :meth:`~regex.match` method of a :ref:`regex object <re-objects>`.  This is | ||||||
|    is the index into the string at which the RE engine started looking for a |    the index into the string at which the RE engine started looking for a match. | ||||||
|    match. |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| .. attribute:: match.endpos | .. attribute:: match.endpos | ||||||
| 
 | 
 | ||||||
|    The value of *endpos* which was passed to the :meth:`~regex.search` or |    The value of *endpos* which was passed to the :meth:`~regex.search` or | ||||||
|    :meth:`~regex.match` method of a :ref:`match object <match-objects>`.  This |    :meth:`~regex.match` method of a :ref:`regex object <re-objects>`.  This is | ||||||
|    is the index into the string beyond which the RE engine will not go. |    the index into the string beyond which the RE engine will not go. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| .. attribute:: match.lastindex | .. attribute:: match.lastindex | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl