Replace text (Word app scope) case sensitive

Hi everyone,

I’m using Replace text activity for words with the first letter capital. I need robot to work with these words only, but it replaces even those without capital letters. For example if the keyword is River, it replaces words River and river.

I’m using Regex to find words with first letter capital and it is set properly (checked it at output). The problem seems to be in Replacetext activity.

Is there any chance to make it work with the first letter capital words only?

Thank you. Martin

@martin.vlcek
Welcome to the forum

give a try on working with the BalaReva Word Activities
grafik

grafik

can be added to the UiPath Project by using the dependecy manager:
grafik

1 Like

Hi @martin.vlcek - welcome to the UiPath Community :partying_face:

Have you got a screenshot of the properties panel. Particularly the pattern :slight_smile:

Hello Peter, thank you for your tip. I tried this activity, but getting nullreference.exception.
Find-replace with log:

Hello Steven, you mean Regex properties? Looks like this:

1 Like

And whole process (extraction for testing) looks like this:

ensure that you are working within the balareva word application scope when using the ctivity mentioned above:
grafik

Oh, my bad. I should know this. Now it works perfect! Many thanks Peter!

1 Like

Solution from Peter worked. Thank you.

1 Like

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