Del:
Anmeld Indlæg

I present the regex and dom versions for review.

Hello, You did ask for a regex expert and well such would hardly ever do this using regex, so I present the dom version which is generally more accurate and also easier to manage and well the proper way to do it. Although you did ask for regex so I also present an optimized version of regex, here I am simply using IF to determine if 'src' is in the match string and if it is match what we need and reconstruct in the replace, well its quite simple to understand now anyway. Thank you.

Konkurrenceindlæg #3 for                                                 Optimizing a Regular Expression

Offentlig Præciserings Opslagstavle

  • codebuyer101
    Konkurrenceafholder
    • 9 år siden

    just curious, how did you find the contest? The fact that i paid extra to have it set as featured, did that play any part in you finding the contest? I'm wondering if I am waisting money paying for that extra stuff.

    • 9 år siden
  • SmartChoice Solutions
    SmartChoice Solutions
    • 9 år siden

    sure sounds good, I need to read thru it though but should be straight forward, I will read up and bid on there, do you want to finish this here

    • 9 år siden
  • codebuyer101
    Konkurrenceafholder
    • 9 år siden

    Do you have any interest in another one of my jobs as well? https://www.freelancer.com/projects/PHP-Software-Architecture/Put-PHP-Solution-Together-Using.html

    • 9 år siden
  • SmartChoice Solutions
    SmartChoice Solutions
    • 9 år siden

    given the current scenario it would probably be the regex version

    • 9 år siden
  • codebuyer101
    Konkurrenceafholder
    • 9 år siden

    wow, cool. which one do you think performs the fastest?

    • 9 år siden

Vis flere kommentarer Behandler...