Posted 24 May 2026, 1:09 am EST
There doesn’t seem to be a way to do this now so a suggestion… A numeric character like ‘#’ as a wildcard to match numbers specifically would be very useful.
Forums Home / Document Solutions / Document Solutions for PDF .NET
Posted by: superbiff on 24 May 2026, 1:09 am EST
Posted 24 May 2026, 1:09 am EST
There doesn’t seem to be a way to do this now so a suggestion… A numeric character like ‘#’ as a wildcard to match numbers specifically would be very useful.
Posted 25 May 2026, 12:27 am EST - Updated 25 May 2026, 12:49 am EST
Hi Chris,
Thank you for sharing your suggestion.
We reviewed this scenario and found that numeric wildcard-style matching can already be achieved using regular expression (regex) support in the FindText() API.
The FindTextParams class provides a regex parameter that allows the search text to be interpreted as a regular expression. For example, to match a string starting with INV- followed by 3 digits:
string text = @"\bINV-\d{3}\b";
var findTextParams = new FindTextParams(text, wholeWord: false, matchCase: true, regex: true);
var results = pdfDocument.FindText(findTextParams, OutputRange.All);
In this example:
So regex expressions may already cover scenarios where a numeric wildcard (such as #) would otherwise be used.
You can further refer to the attached sample below that demonstrates the usage of the above code snippet and searches the text as expected.
Please let us know if you have any further questions or require additional assistance.
Kind Regards,
Chirag
Attachment: HashtagWildCard.zip
Working:

Posted 26 May 2026, 12:00 am EST
My apologies. I may have posted in the wrong place. I was specifically referring to the JS viewer… The * and ? wildcards work fine for me but I didn’t think there were others? I experimented with # but no luck.
Posted 26 May 2026, 1:16 am EST
Hi Chris,
Thank you for the clarification.
You are correct - previously, we referred to the DsPdf API search functionality, while your question is specifically about the JavaScript PDF Viewer search.
We reviewed the DsPdfViewer search capabilities and confirmed that the currently supported wildcard options are:
At this time, number-specific wildcard matching (for example, # to match digits only) is not supported in the viewer search functionality. Therefore, we have escalated this matter with the concerned development team and will update you as soon as we get any information from their end.
Internal Tracking ID: DOC-7619
We appreciate your patience in the meantime.
Kind Regards,
Chirag