Rgex other than is pattern matching

I dont have is matching patern activity due to package version
is there any method to extract through regex

@Girid

you can use this expression in assign activity

outputstr=system.text.regularexpression.regex.match(inputstring,“regexpattern”).value

if you want to use this expresion

click on imports and search system.text.regularexpression and click on that

cheers

Hi,

I dont have is matching patern activity due to package version

IsMacth activity is renamed to IsTextMatching activity in recent version. Can you try this?

image

Regards,

Hi @Girid

The names of the Regex matches activities changed.
→ The Matches activity changed it to Find Matching Patterns activity.
image

→ The IsMatch activity changed it to Is Text Matching.
image

Hope it helps!!

Hey @Girid ,try upgrading your packages if that is a problem then just Use
System.text.regularexpressions.regex(inputstring, pattern ).value

Import the namespace too → System.Text.regularexpressions

Hope it helps u out

Where is the namespace import

Please refer above screenshot
so basically it is near variables panel

Hope it helps u out1

1 Like

You don’t have to import the namespace. Typing the expression does the imports for you automatically.

1 Like

Thank you @Vikas_M , it worked

@Girid

see in my first post i have shown the imports

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.