V
VK
Hello!
Given a string like
<input type="button" name="b1" value="Button">
I want to locate the element's name (b1) and replace it with this very name
+ some spice.
And of course it can be any kind of loose HTML syntacs:
name="b1"
NAME="b1"
name='b1'
NAME=b1
....
So it's something like (totally wrong expression, I know):
/name=(s+|'|")(name)/$1+my_spice/i
But I did not work with regexp for a longest time, and I'm just too lazy
(sorry to admit) to read manuals over again just for one case.
Any Samaritan soul around here?
Given a string like
<input type="button" name="b1" value="Button">
I want to locate the element's name (b1) and replace it with this very name
+ some spice.
And of course it can be any kind of loose HTML syntacs:
name="b1"
NAME="b1"
name='b1'
NAME=b1
....
So it's something like (totally wrong expression, I know):
/name=(s+|'|")(name)/$1+my_spice/i
But I did not work with regexp for a longest time, and I'm just too lazy
(sorry to admit) to read manuals over again just for one case.
Any Samaritan soul around here?