Python Forum
i need a more complex regexp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i need a more complex regexp
#1
i need a more complex regular expression i hope to use with module re. in this expression i need to match 2 (and in 2 more variation, 3 and 4) arithmetic expressions separated by any character that is not valid in an arithmetic expression. i plan to evaluate the arithmetic expressions with the eval() function to get their values. the strings are coming from safe places, like input from the user that runs it. is there a symbol in PCRE to do this or some combination that can do it?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
i need a more complex regexp - by Skaperen - Oct-08-2019, 01:54 AM
RE: i need a more complex regexp - by Gribouillis - Oct-08-2019, 07:26 AM
RE: i need a more complex regexp - by Skaperen - Oct-08-2019, 10:09 PM
RE: i need a more complex regexp - by Gribouillis - Oct-09-2019, 05:58 AM
RE: i need a more complex regexp - by Skaperen - Oct-10-2019, 07:46 AM

Forum Jump:

User Panel Messages

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