This question already has an answer here:
<input name="so and so" id="john doe" value="something something" />
I want to match only the space character that is within the " of a value= attribute.
I came up with this:
value="[^"',:<>/
]*[ ][^"',:<>/
]*"
Problem is this matches the whole string, where I just need the space in the matched string from above.
I am reading some tutorials, which leads me to think I need to use a conditional statement, but I can't seem to figure out how that would work. My guess (which of course didn't work) was:
(?(?=value="[^"',:<>/
]*[^"',:<>/
]*")[ ])
Any help is appreciated. Thanks!
</div>