Regex truncate character limit
Regex truncate character limit
python
import re
# re.compile will truncate the string at 199 characters
a = re.compile('assets\\/(?P<sg_asset_type_0d13>\\w+)\\/(?P<Asset_43e8>\\w+)\\/(?P<Step_89b2>[a-zA-Z0-9_]*)\\/(?P<Task_753d>\\w+)\\/data\\/RSproxy\\/(?P<xgen_desc_name_4c49>[a-zA-Z0-9_]*)\\/v(?P<version_8743>\\d{03}\\d*)\\/(?P<Asset_43e8>\\w+)\\.(?P<ext_0d13>\\w+)')
print(a)
# re.compile('assets\\/(?P<sg_asset_type_0d13>\\w+)\\/(?P<Asset_43e8>\\w+)\\/(?P<Step_89b2>[a-zA-Z0-9_]*)\\/(?P<Task_753d>\\w+)\\/data\\/RSproxy\\/(?P<xgen_desc_name_4c49>[a-zA-Z0-9_]*)\\/v(?P<version_8743>\\d{03})