ne=2, column=16)
    Token(type='ID', value='total', line=3, column=8)
    Token(type='ASSIGN', value=':=', line=3, column=14)
    Token(type='ID', value='total', line=3, column=17)
    Token(type='OP', value='+', line=3, column=23)
    Token(type='ID', value='price', line=3, column=25)
    Token(type='OP', value='*', line=3, column=31)
    Token(type='ID', value='quantity', line=3, column=33)
    Token(type='END', value=';', line=3, column=41)
    Token(type='ID', value='tax', line=4, column=8)
    Token(type='ASSIGN', value=':=', line=4, column=12)
    Token(type='ID', value='price', line=4, column=15)
    Token(type='OP', value='*', line=4, column=21)
    Token(type='NUMBER', value=0.05, line=4, column=23)
    Token(type='END', value=';', line=4, column=27)
    Token(type='ENDIF', value='ENDIF', line=5, column=4)
    Token(type='END', value=';', line=5, column=9)
    

[  Frie09  ]

Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., OâReilly Media,
2009. The third edition of the book no longer covers Python at all, but the
first edition covered writing good regular expression patterns in great
detail.

###  [ Table of Contents ](../contents.html)

  * ` re  ` â Regular expression operations 
    * Regular Expression Syntax 
    * Module Contents 
      * Flags 
      * Functions 
      * Exceptions 
    * Regular Expression Objects 
    * Match Objects 
    * Regular Expression Examples 
      * Checking for a Pair 
      * Simulating scanf() 
      * search() vs. match() 
      * Making a Phonebook 
      * Text Munging 
      * Finding all Adverbs 
      * Finding all Adverbs and their Positions 
      * Raw String Notation 
      * Writing a Tokenizer 

####  Previous topic

[ ` string  ` â Common string operations ](string.html "previous chapter")

####  Next topic

[ ` difflib  ` â Helpers for computing deltas ](difflib.html "next chapter")

###  This Page

  * [ Report a Bug ](../bugs.html)
  * [ Show Source ](https://github.com/python/cpython/blob/main/Doc/library/re.rst)

Â«

###  Navigation

  * [ index ](../genindex.html "General Index")
  * [ modules ](../py-modindex.html "Python Module Index") | 
  * [ next ](difflib.html "difflib â Helpers for computing deltas") | 
  * [ previous ](string.html "string â Common string operations") | 
  * ![Python logo](../_static/py.svg)
  * [ Python ](https://www.python.org/) » 
  *   *   * [ 3.12.3 Documentation ](../index.html) » 
  * [ The Python Standard Library ](index.html) » 
  * [ Text Processing Services ](text.html) » 
  * [ ` re  ` â Regular expression operations ]()
  * | 
  * Theme  Auto  Light  Dark  | 

© [ Copyright ](../copyright.html) 2001-2024, Python Software Foundation.  
This page is licensed under the Python Software Foundation License Version 2.  
Examples, recipes, and other code in the documentation are additionally
licensed under the Zero Clause BSD License.  
See [ History and License ](/license.html) for more information.  
  
The Python Software Foundation is a non-profit corporation. [ Please donate.
](https://www.python.org/psf/donations/)  
  
Last updated on Apr 16, 2024 (06:11 UTC). [ Found a bug ](/bugs.html) ?  
Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.