TestProject Forum
Powered by leading experts in the test automation community

How to use addon - Split string with regex

Please advice on how to use Split string with regex

Hey Steve, thanks for reaching out!
using regex you can split an input string into an array of substrings at the positions defined by a regex match.

for example:

in case your input is:
“abc1234def5678Ghi9012jklm”
and regex pattern is:
“[a-z]+”
result will be = [1234,5678,9012]

this is a great reference for you: https://regex101.com/
Happy Testing!