in reply to Re^3: using just variables in a regular exression
in thread using just variables in a regular exression

Ok, you've convinced me.
if the expression starts with s or m then parse on the /
otherwise its a parser.
if s or m, handle as u suggest.. not a lot of code add.

thanks Sam

  • Comment on Re^4: using just variables in a regular exression

Replies are listed 'Best First'.
Re^5: using just variables in a regular exression
by davido (Cardinal) on Aug 31, 2012 at 02:49 UTC

    Good call, and it sounds quite reasonable. Maybe look for expressions that would match m{^([sm])/} and assume those are ones that need to be evaluated either as m/ or s/. All the rest, treat like m/.


    Dave