I am using the latest Notepad++ and would be grateful for some RegEx development help. I need the RegEx to focus on only the *
located to the right of colwidth attribute. Below are a couple examples of the XML colwidth attribute I'm talking about:
colwidth="0.83*" (not missing * character)
colwidth="155.7" (missing * character)
The RegEx needs to perform the following task:
If the closing "
character to the right of the colwidth attribute code is missing the *
character then I need the RegEx to insert a *
character so I get this result: *"
However, if the closing "
character of the colwidth attribute code already is preceded by a *
character (as shown in example above) then I need the RegEx to do nothing to it.
Can a RegEx be made smart enough to only apply this change to only the text that begins like this: colwidth="
And then skip over whatever number/period combination and then only target the closing "
character and add a *
character if it is missing it or just skip over it if the *
is already there preceding the closing "
?
Any help will be greatly appreciated.