Python re: getting quotes or double quotes

  python-3.x

I trying to creat a little programming language just for fun.

I want to make:
string_char = 'hello world' or "hello world"

I trying this:
search_str = "([A-z].*) = '(.*)'|/"(.*)/""

But return none

PS:There is a module to create the grammar (rules) and the syntax of a language?

Source: Python-3x Questions

LEAVE A COMMENT