• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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