Notifications
Announcements
Hmmm...
The %Matches% result = Ebay
The %Ebay% var value = Ebay
Doesnt work when "equal to" but does work when set to "contains"... ?
Also doesnt work when hardcoded "Ebay" is in the second operand (in the If).
Thoughts...
Do you have white space in one of those variables, such as "ebay{space}" or "{space}ebay"?
Hey Mike, no pal, triple checked everything.
Im wondering if im getting the match result with a space after.
As in result = Ebayspace
That's what I was asking. If so, Trim Text (white spaces from beginning and end) and try that.
I thought you meant my var rather than the output var.
Ive just trimmed the resulting match, beginning and end, no joy...
Are they both Text Variables? Or is 1 a List?
Set Ebay to %Ebay% is the first var.
The %matches% is produced from the Parse Text action.
No lists...
Output from the %Matches%
Yup, it's a List, so you need %Matches[0]%.
Wouldn't the following code yield the desired result with less effort?
IF Contains(ExtractedPDFText, $'''@ebay.''', True) THEN Display.ShowMessageDialog.ShowMessage Message: $'''The PDF contains an ebay email address!!!''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False END
Dagnabit !!! Genuinely thought it would just pull the output rather than having to specify the index 🙄
Im still stumped why it matched contains but not equal to, as I didnt specify the index ? Could you explain why ?
So, as every result will be at 0 index therefore I just have to set print to %Matches[0]%, I can live with that.
Thanks 😀
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional