I am trying to build a data manager (for data driving tests) which could generate a string based on patterns given as input. i thought using regular expressions for patterns would be suitable. Can you suggest a way to do this?
If you have a pattern in text that can be identified, then one can use Regex to replace items from within the string. See Example
The <br> will be replaced with </br>.
Now there is more power and flexibility in the Reg Ex language. One doesn't have to do replace with regex...one can extract substrings, see this post Help on Creating Regular Expression for an example. The onus is on you to determine what patterns you have and how the output using RegEx is feasable.