Using wildcards in an 'Click text' activity

selector
sap
studio

#1

Dear UiPath forum members,

For SAP automation I need to use the ‘click text’ activity. However, I need to use wildcard for this because not everything is known.

The format is:

2500-??-?2???-???-???

Only the first four digits (2500) and the string with the 2 (can either be 1??? or ??3??? or 1?3??? etc.) are known and vary every process.

How can I use wildcards in a click text activity?

Sincerley,
Robert


#2

I would try to read text from the screen (for example Get Full Text activity or sometimes you can save entire screen in SAP to text file - save local file), then use Regex to find your exact text that needs to be clicked. When you have entire text you can use click text activity.


#3

Good idea, can you please help me with the Regex?


#4

You can check this topic:

https://forum.uipath.com/t/how-to-use-matches-to-extract-values-using-regex/4687


#5

For example 2500-11-12111-111-111

this is the format you need to validate???

Regex format \b\d{4}\b-\b\d{2}\b-\b\d{5}\b-\b\d{3}\b-\b\d{3}\b

Regards,
Arivu