Results 1 to 2 of 2

Thread: how do i check if any characters in an array appear within a string?

  1. #1
    Join Date
    Aug 2018
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how do i check if any characters in an array appear within a string?

    Hi

    I currently have the ASP following code, where if a particular non-Latin character "д" appears in my search string, i get a desired response as below.

    Code:
    myQuery = request("myQuery")
    
    If InStr(1, myQuery, "д", 1) > 0 then
        Response.write "Query from languages ......  detected." 
     Else 
        Response.write "Continue searching English/Latin archive."
    End if
    But how do i replace my single character with an array of characters:

    Code:
    myArray = Array("","","ş","ğ", "", "д", "ф")
    In other words, how do i check to see if any of the characters in myArray appears in myQuery?
    Thanks in advance.

  2. #2
    Join Date
    Oct 2020
    Location
    Bronx
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Have you solved it? I have the same issue.

Similar Threads

  1. Replies: 3
    Last Post: 01-09-2013, 02:34 PM
  2. Create string with random characters
    By borris83 in forum PHP
    Replies: 11
    Last Post: 03-31-2009, 07:05 PM
  3. Replies: 2
    Last Post: 02-03-2009, 10:45 PM
  4. Detect Characters in String
    By T Horton in forum JavaScript
    Replies: 1
    Last Post: 05-18-2008, 01:23 AM
  5. How to find certain characters in a string
    By Moranor in forum JavaScript
    Replies: 1
    Last Post: 02-09-2007, 10:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •