Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:53:28+00:00 2026-06-17T20:53:28+00:00

I am really a beginner, I already know string.indexOf(); Can search for a whole

  • 0

I am really a beginner, I already know

string.indexOf("");

Can search for a whole word, but when I tried to search for e.g: ig out of pig, it doesn't work.

I have a similar string here(part of):

<Special!>The moon is crashing to the Earth!</Special!>

Because I have a lot of these in my file and I just cannot edited all of them and add a space like:

< Special! > The moon is crashing to the Earth! </ Special! > 

I need to get the sub-string of Special! and The moon is crashing to the Earth!
What is the simple way to search for a part of a word without adding plugins like HTMLAgilityPack?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:53:29+00:00Added an answer on June 17, 2026 at 8:53 pm

    IndexOf will work, you are probably just using it improperly.

    If your string is in a variable call mystring you would say mystring.IndexOf and then pass in the string you are looking for.

    string mystring = "somestring";
    int position = mystring.IndexOf("st");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First sorry, but im a really big beginner, so you can down vote this
Really stupid question, sorry, but I can't find it on google (I'm sure it's
I'm a really beginner so my question may be appear ridiculous.. But, i wonder
I apologize if this is a really beginner question, but I have not worked
First sorry if its a stupid guestion but im a really big beginner. I
I've already got this to work but it's a really bad approach and i
i am really a beginner in file.regex so if someone explain me how can
Alright, so this is probably a really beginner problem here, but I've never actually
I'm really a beginner in R so, sorry if my code shocks you guys.
I am a Java beginner and, I am not really sure what JMSExceptions are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.