cleanRegex

cleanRegex ( string regex , string _code , string _postProcessing , int _numberOfMask ) : string

Return the mask of a regex.
Same than regex but with post processing to format the data.

See also

regex
regexAll
cleanRegexAll

Parameters

regex

_code (optional)

If null it is the page code

_postProcessing (optional)

• null or nothing = stripTags + standardizeText
• "description" or "d" = standardizeText
• "price" or "p" = htmlToPrice
• "number", "decimal", "float" or "n" = number with decimal
• "integer" or "i" = numeric integer
• "none" or "-" or "." or "0" = nothing
• Other avaliable post-processings : "xml", "url", "prestashop_category", "prestashop_manufacturer", "prestashop_supplier", "prestashop_feature", "prestashop_feature_value", "prestashop_attribute", "prestashop_combination"

_numberOfMask (optional)

Place of the mask in the regex. Masks are defined by brackets in POSIX.
The value -1 is not available, use regexAll.