Syntax error Special Syntax with Parentheses in Python

Special Syntax with Parentheses in Python



Sr.No. Example & Description
1 R(?#comment)
Matches "R". All the rest is a comment
2 R(?i)uby
Case-insensitive while matching "uby"
3 R(?i:uby)
Same as above
4 rub(?:y|le))
Group only without creating \1 backreference
Updated on: 2020-01-31T07:44:14+05:30

175 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements