Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 306 Bytes

Positive Lookbehind.md

File metadata and controls

14 lines (8 loc) · 306 Bytes

Task

You have a test String S.

Write a regex which can match all the occurences of digit which are immediately preceded by odd digit.

Solution

Regex_Pattern = r"(?<=[13579])\d"