Hi guys I am new with Regex I trying to define a pattern(python) in the following string:
\\xxxx\bbbbb\ccccc\mmmmmm\ooooooo\Snapshot\llllllllllllllllllll.png
S**p*ho*
I need all words that have in position:
- 0: have S
- 1: any letter
- 2: any letter
- 3: have p or P
- 4: any letter
- 5: have h or H
- 6: have o or O
- 7: any letter
I am using:
res = re.findall(r'[S]\p{L}\p{L}\p{L}\p{L}\p{L}\p{L}\p{L}', str_3.upper())
But I also need specific characters in positions 0,3,5,6.
Thanks,