On 22 May 2017, at 20:50, Mariano Martinez Peck <marianopeck@gmail.com> wrote:

Hi guys,

I have this Javascript regex to prefix CSS rules to a given ID:

css = css.replace(/([,|\}][\s$]*)([\.#]?-?[_a-zA-Z]+[_a-zA-Z0-9-]*)/g,  "$1" + "#myDiv" + " $2���);

/([,|}][\s$]*)([.#]?-?[_a-zA-Z]+[_a-zA-Z0-9\-]*)


HTH,
Max


I am trying to make this work on Pharo (and then I will need in GemStone) but I am getting errors while trying to create the regex itself. I am very far from being a regex expert (I got that regex from StackOverflow). Any help is appreciated.

Cheers,

--