Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Javascript/Python - Find in string iteration help needed

  1. #11
    Join Date
    Sep 2005
    Beans
    1,596
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Javascript/Python - Find in string iteration help needed

    You know that's too funny that you mention that, but when I developed the code, I tested it, and certain examples would hit every one of those conditional loops for specific titles. So I just remember coding it and thinking through it at the time, yet, I don't really understand how I came to the conclusion that it works how it works. It's odd, but sometimes when I get into my programming fits, I just figure things out. If I could post what I do for work, I would give you really really really good examples, but due to NDA's I can't say.
    MBA M1 - M1 8GB 256GB - macOS Monterey
    MSI GL65 - i5-10300H 16GB 512GB GTX 1650 Windows 11
    Galaxy Book Go - Snapdragon 7c Gen 2 4GB 128GB Windows 11

  2. #12
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,499
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Javascript/Python - Find in string iteration help needed

    you don't have to put your real stuff here. I am just curious what the copy_title is (not seeing its purpose in the original description of the problem) and for all i care the few example strings showcasing corner cases could be of the "this is OmgWtfBbq" variety.

    if you got titles "ABC" "ABC DEF" and "GHIJKLMNOP", what should be picked when tried against "something ABC DEF something GHIJKLMNOP"? Always the longest match? What if there is a draw?
    Last edited by Vaphell; September 18th, 2014 at 12:42 PM.
    if your question is answered, mark the thread as [SOLVED]. Thx.
    To post code or command output, use [code] tags.
    Check your bash script here // BashFAQ // BashPitfalls

Page 2 of 2 FirstFirst 12

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
  •