Electron microscopy
 
PythonML
Search/Extract All the 4-Digit Numbers
(with and without Extension) from a Given Text
- Python Automation and Machine Learning for ICs -
- An Online Book -
Python Automation and Machine Learning for ICs                                                           http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

Search/extract all the 4-digit numbers from a given text. Code:

         

Input:

                                                                                                                        Output:    

         

===========================================

Search strings which contain 8 characters where there are 4-digit number in front of the dot "." and after the dot it can be any 3 characters (numbers, letters, or a mixture) after the dot. Code:

Input:

Output:


============================================

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================