Answered
regular expression
Hello,
I need a little help with a regular expression. I would like to be able to find this string :
<!-- InstanceBeginEditable name="breadcrumb" -->
That is : a string beginning with "<!--" and containing as many white spaces as you wish, then "InstanceBeginEditable ", then as many white spaces as you wish, then "name=" ", then as many alphanumerical chars as you wish, then a quote, then as many white spaces as you wish and last "-->".
I'm trying to use this regular expression :
new RegExp("<!\-\-(\s)*InstanceBeginEditable(\s)*name=\"(\w)*\"(\s)*\-\->","g");
but as you can guess, it doesn't work.
A clue, anyone ?
TheGridOne
I need a little help with a regular expression. I would like to be able to find this string :
<!-- InstanceBeginEditable name="breadcrumb" -->
That is : a string beginning with "<!--" and containing as many white spaces as you wish, then "InstanceBeginEditable ", then as many white spaces as you wish, then "name=" ", then as many alphanumerical chars as you wish, then a quote, then as many white spaces as you wish and last "-->".
I'm trying to use this regular expression :
new RegExp("<!\-\-(\s)*InstanceBeginEditable(\s)*name=\"(\w)*\"(\s)*\-\->","g");
but as you can guess, it doesn't work.
A clue, anyone ?
TheGridOne