Hi all,
Can the AttributeManager perform operations like the StringSearcher?
I would like to extract certain strings from an attribute called RAW_DATA, I'm looking for the value in "value="xxx"
e.g.
<span class="store-card__value">Mon-Fri 09:00 AM - 09:00 PM
</span>
<span class="store-card__value">Sat 09:00 AM - 06:00 PM
</span>
<span class="store-card__value">Sun 10:00 AM - 05:00 PM
</span>
</p>
</div>
<div>
</div>
<div class="store-card__section">
<a class="store-card__action" href="/teststore.com">Store Details</a>
<button class="btn btn-tool store-card__action storeSelectButton selectCategoryStore " id="selectCategoryStore_699" name="699" value="699">Store</button>
</div>
</section>
</li>
In a StringReplacer I would use RegEx like value=\"\d{1,3}\" to get what I need.
I have to perform a bunch of operations like the above one so I'd rather keep everything in one AttributeManager and not use 20 separate StringReplacers.
Can the AttributeManager perform these operations?
I have been looking at the help file but it is not clear to me. Stuff like this is just Chinese to me:FindString(str, findStr, pstartIdx], ecaseSensitive])
Returns the index in string
str
starting at startIdx
that matches findStr
, or -1 if the string is not found. If startIdx
is a negative integer, FindString()
returns the index in str
starting at startIdx
from the end of str
, then matching findStr
going forward (from left to right). If startIdx
is not specified, the search starts at index 0. If caseSensitive
is FALSE, the search is case-insensitive. Otherwise, the search is case-sensitive.
Cheers,
Ed