iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Python Scripting Examples > String Manipulation > Removing Unwanted Whitespace |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Python supports powerful regular expressions for editing text. This is useful for eliminating unwanted spaces and tabs (also known as whitespace) and for other types of editing operations. For example, the following example removes any whitespace padding within a text field:
For example, a string like this:
becomes
|