Skip to main content

When I am using a regex in a string searcher, the output is as expected. When I am using the same regex as @FindRegularExpression in the Attribute Manager, my script always fails. What do I need to modify in the Attribute Manager regex? Thanks21

@FindRegularExpression returns the index of the match. @SubstringRegularExpression will return the match itself, similar to the StringSearcher.


@FindRegularExpression returns the index of the match. @SubstringRegularExpression will return the match itself, similar to the StringSearcher.

@dustin​ I tried it previously as well but it didn't work either. Am I missing anything ?3


@dustin​ I tried it previously as well but it didn't work either. Am I missing anything ?3

There are additional inputs needed for @SubstringRegularExpression. Try this:

@SubstringRegularExpression(@Value(path_windows),.*(?<=\\),0,0,0,caseSensitive=TRUE)

 


Reply