I have some html code that I need to regex and remove a part of it.
In this particular example I need to remove 2-columns.. The full string is name="2-columns.Heading-1" but needs to read name="Heading-1"
I would like this to be extendable because another example could be name="3-columns.Heading-1". So I want to remove everything after the starting point of name=" and the ending . (I also want to remove the .)
Can anyone help me form the correct regex? I'm struggling.
nameattribute is only valid for<form>and form elements, right?