I have a regular expression that searches for a special class and outputs a tag.
(?<=<div\ class="value.*?">\s+).*?(?=\s+</div>)
The problem is that it leaves whitespaces at the beginning of the tag
Example:
<div class="value odd"> THIS IS MY TAG </div>
For now my expression remove the whitespaces only after the tag, but not at the beginning.
How I can remove it at the beginning?
I need to get only: THIS IS MY TAG