Jump to content

Remove a specific word from a text string


macfan55

Recommended Posts

Thanks! Works great.

1 question about the search and replace field;

Can I use a "wildcard" in the texttoreplace field as a part of it?

You can do that with JavaScript's String.replace function and a Regular Expression.

 

You can find lots of examples online by searching for "JavaScript replace wildcard", such as:

http://www.brighthub.com/internet/web-development/articles/85831.aspx

 

If you have a more specific question about how to replace something, then I, or someone else here, could provide a more specific answer.

Link to comment
Share on other sites

Thanks for your answer; The problem I now have is that the word I want to replace is mostly "Location" and sometimes "location" so I was looking for a way to use a wildcard for the first letter like "*ocation" but that does not work. Maybe You can show me the right way to do that as a part of the replace substring code. Thanks in advance!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...