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 5984367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:21:58+00:00 2026-05-22T22:21:58+00:00

Hi I like to build a string function: if member of a list of

  • 0

Hi
I like to build a string function:

if member of a list of string: 
    "Nissan" from "Honda, Toyota, Nissan, Mazda"

  if start with or end with
    "Nissan" from "Nis*" as start with 
    "Nissan" from "*san" as end with

  if not start with or end with 
    "Ford" from "^Nis*" as start with 
    "Ford" from "^*san" as end with 

  if Not member of a list of string:
    "Ford" from "^Hon*, ^Toy*, Nis*, Mazda"

I was thinking Regex maybe the solution, but how I implement it?

Thank you
Wes

  • 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-05-22T22:21:58+00:00Added an answer on May 22, 2026 at 10:21 pm

    Difficult to understand what you are asking for, but I will do my best to guess:

    1. To check if string is one of the following: Honda, Toyota, Nissan, Mazda

      ^(Honda|Toyota|Nissan|Mazda)$

    2. Starts with Nis

      ^Nis.*$
      
    3. Ends with san

      ^.*san$
      
    4. Not starts with Nis

      ^(?!Nis).*
      
    5. Not ends with san

      ^.*(?<!san)$
      
    6. Does not contain any of Hon*, Toy*, Nis*, Mazda

      ^(?!Hon.*|Toy.*|Nis.*|Mazda).*
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For generating random string i written code like this But if the function is
I would like to build the where clase of a sql statement dynamically from
I would like to build two buttons with an onclick function that will insert
Is there any build-in javascript function, where I can use another string format to
I'd like to use bind variables instead of a string concatenation when I build
I have a List of Map[String, Double], and I'd like to merge their contents
Can I configure Flash Builder 4 to build into different folders? Something like: build
I would like to build a query that will pull the number of rows
I'd like to build s on the fly in a box based on an
I would like to build an excel VBA program to find all the match

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.