Responsive Ad Area

Share This Post

test

How to find Unicode Pattern using Regex in Python3.7?

I am trying to find a Unicode pattern but it always returns an empty list [ ].
I have tried the same pattern in Kwrite and it worked fine.

I have tried u u in place of w but didn’t work for me. Here Unicode string can be any Unicode string.

InputString=r"[[ਅਤੇCC_CCD]]_CCP"

Result = re.findall(r'[[]+[w]+\w+[]]+[_]w+',InputString,flags=re.U)

print(Result)


How to find Unicode Pattern using Regex in Python3.7?
How to find Unicode Pattern using Regex in Python3.7?
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar