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

  • Home
  • SEARCH
  • 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 8456343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:31:28+00:00 2026-06-10T12:31:28+00:00

Given a string, I need to verify that the string contains the word $LOOP

  • 0

Given a string, I need to verify that the string contains the word $LOOP strictly. For instance,

$LOOP(0,"0000","00000009","00000010",5000,100,0,0,0,0,10,0,0);

would return as true while

$LOOP_A("asdf","zxcv")
$LOOP_INIT(0);

would return as false.

The problem I’m having with string.Contains($LOOP) is that it also returns true for the below two strings.

How can I solve this problem?

Edit 1:

Here are some other examples:

$LOOPING should return false
$LOOP$LOOP should return false
$LOOP(anything here) should return true
$LOOP        (Anything here) should return true
$asdLOOP should return false
  • 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-10T12:31:30+00:00Added an answer on June 10, 2026 at 12:31 pm

    What you are looking for is perhaps REGEX with Word boundary. This will do the trick

    Regex re = new Regex(@"\$LOOP\b");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a function that returns whether the given string contains at least x
From a string, I need to pull out groups that match a given pattern.
I need to find all substrings from a string that starting with a given
I need to make a method that checks if a given String only consists
Given a string of a mobile phone number, I need to make sure that
Using JavaScript, I need to check if a given string contains a sequence of
I need a regular expression that detects if a given string is a url
I'm in need to modify a given string to contain only alpha numerical characters,
i need to check existing of Character (*,&,$) in Given String using python command
Given the following string: 's0\\8\\26\\29\\30\\32' or 's0\\8\\26\\' or 's0\\5', I need to return the

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.