Solved

Javascript findText with wildcards

Posted on 2010-09-01
4
364 Views
Last Modified: 2012-05-10
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
Comment
Question by:tuchfeld
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33579171
0
 

Author Comment

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

Accepted Solution

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

Author Closing Comment

by:tuchfeld
ID: 33580330
No workarround suggested.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaScript/CSS: Detect if hue-rotate supported by browser 1 38
How to use embargo Date/time in php 29 39
Javascript tutorials with real examples 5 26
Javascript Form Change 5 23
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) 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'…
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…

809 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