• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Javascript findText with wildcards

Hello,
I'm using javascript to search in html document
using the commands such as:
doc.selection.createRange();
txt = doc.body.createTextRange();
txt.moveStart("character", 1);
txt.moveEnd("textedit", 1);
txt.findText(...);

It works fine,
but I'd like to add another feature
search with a wildcard.
Example:
Search for: a*b*c
will find: abc, azbc, azzbzzzc,
etc.
How should I do that?
Thanks, Aryeh.
0
tuchfeld
Asked:
tuchfeld
  • 2
  • 2
1 Solution
 
Daniel JungesCommented:
0
 
tuchfeldAuthor Commented:
I'm familiar with RegEx in Javascript.
The question is how to do Regular Expression search with the findText command...
0
 
Daniel JungesCommented:
the function findText seems not suport wildcards
0
 
tuchfeldAuthor Commented:
No workarround suggested.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now