I got a RegEx question that drives me nuts, hopefully someone could enlighten me.
I need to select an element by innertext because there are absolutely no other unique attributes but the innertext.
The inner text looks like this (the dots are whitespaces):
Code: Select all
.......
.........CV
......
so something like
Code: Select all
.../tag[innertext='CV']
Code: Select all
.../tag[innertext~'CV']
So what I am after is to ignore all leading and trailing whitespaces with something like \s* and then do a 'equal' identification instead of the 'contains', which should then be able to differentiate between 'CV' and 'SCV'.
Any ideas?
Would be very much appreciated...