Online Python Formatter

Help Tutorials Coding Ground View Edit Dev Tools
Online Image Optimizer
Online LaTex Editor
LaTex Equation Editor
Whiteboard
Online Image Editor
Online XML Editor
Online JSON Editor
File Conversion
More Tools...
Undo
Redo
Cut
Copy
Paste
Delete
Select All
Find
Find and Replace
Editor Theme
Chrome
Crimson Editor
Dreamweaver
Eclipse
Github
Kuroir
Solarized Light
Solarized Dark
XCode
Ambiance
Cobalt
idle Fingers
krTheme
Mono Industrial
Monokai
Terminal
Textmate
Tomorrow
Twilight
Vibrant Ink
Font Size
8px
9px
10px
11px
12px
13px
14px
15px
16px
17px
18px
20px
22px
24px
Tab Size
1
2
3
4
5
6
7
8
Soft Wrap
On
Off
40 Chars
60 Chars
80 Chars
100 Chars
120 Chars
140 Chars
Show Invisible
Hide Invisible
Show Gutter
Hide Gutter
Download
#!/usr/bin/python
import re

line = "Cats are smarter than dogs";

matchObj = re.match( r'dogs', line, re.M|re.I)
if matchObj:
          print "match --> matchObj.group() : ", matchObj.group()
else:
   print "No match!!"

searchObj = re.search( r'dogs', line, re.M|re.I)
if searchObj:
        print "search --> searchObj.group() : ", searchObj.group()
else:
   print "Nothing found!!"
© Copyright 2023. All Rights Reserved.
Beautify | upload files Upload File