Jun-15-2020, 07:07 PM
HI, I am trying to write a re pattern in below example and following thread: let me know.
Thread: https://python-forum.io/Thread-regular-e...ion--27535
For example:
Text1 = [SYS_1] application [END]
Text2 = [Mobile_2] phone [END]
Text3 = [ABCD_1] text [END]
Text4 = [ABC_] some text [END]
Text5 = [ONE_N] some text [END]
.
.
TextN.......
For each Text needs to check with Regular Expression and match it
Here we need to match with Regular Expression to capture or extract the Text, looks like:
Now, write a one Regular expression for all Text:
Conditions : if SYS_1 and Mobile_2 match , then this are exclude.
if match Text3 or Text4 or Text5 these needs to capture or extract.
Thanks.
Thread: https://python-forum.io/Thread-regular-e...ion--27535
For example:
Text1 = [SYS_1] application [END]
Text2 = [Mobile_2] phone [END]
Text3 = [ABCD_1] text [END]
Text4 = [ABC_] some text [END]
Text5 = [ONE_N] some text [END]
.
.
TextN.......
For each Text needs to check with Regular Expression and match it
Here we need to match with Regular Expression to capture or extract the Text, looks like:
Now, write a one Regular expression for all Text:
Conditions : if SYS_1 and Mobile_2 match , then this are exclude.
if match Text3 or Text4 or Text5 these needs to capture or extract.
Thanks.