Javascript findText with wildcards

Posted on 2010-09-01
Last Modified: 2012-05-10
I'm using javascript to search in html document
using the commands such as:
txt = doc.body.createTextRange();
txt.moveStart("character", 1);
txt.moveEnd("textedit", 1);

It works fine,
but I'd like to add another feature
search with a wildcard.
Search for: a*b*c
will find: abc, azbc, azzbzzzc,
How should I do that?
Thanks, Aryeh.
Question by:tuchfeld
  • 2
  • 2
LVL 14

Expert Comment

by:Daniel Junges
ID: 33579171

Author Comment

ID: 33579486
I'm familiar with RegEx in Javascript.
The question is how to do Regular Expression search with the findText command...
LVL 14

Accepted Solution

Daniel Junges earned 250 total points
ID: 33579888
the function findText seems not suport wildcards

Author Closing Comment

ID: 33580330
No workarround suggested.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Part 1 ( we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now