Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression
#1
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.
Reply
#2
What have you tried so far?
Please show code attempts.
Reply
#3
The following link includes the code and we tried so far: :https://python-forum.io/Thread-regular-e...ion--27535
Reply
#4
why are you double posting?
Please don't we read all threads, and it's against the rules.
Reply
#5
Okay, Any one can help to understand the implementation.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Regular Expression stahorse 9 1,527 Jul-31-2023, 01:20 PM
Last Post: Will_Robertson
  regular expression pramod 1 1,543 Jul-10-2020, 06:38 AM
Last Post: karkas
  regular expression pramod 6 3,001 Jul-04-2020, 04:58 AM
Last Post: pramod
  regular expression pramod 2 1,640 May-05-2020, 02:36 AM
Last Post: pramod

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020