Regex and replace

is it possible to replace words with regex ?
like specific characters ?

or say like split and trim with regex ?

like i want replace “terns” patterns will null so it will be pat
or replace like “terns” with "“ience” so it will be patience

@Sakshi_Jain hy
not sure about using regex but you can replaces by - read text file as string and take it as a variable
and using Variable.replaces(“terns”,“ence”)


You can use Regex patterns of text and replace them with string.

Check out my Regex MegaPost to learn how to do this. Search for “DirtyVariable” on the section 6 - cleaning your string.

Hi @Sakshi_Jain !
If you are used to use the regex patterns, then to do so you can write:

1 Like