Share:
Report Entry

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.

Contest Entry #3 for                                                 Optimizing a Regular Expression

Public Clarification Board

  • codebuyer101
    Contest Holder
    • 9 years ago

    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 years ago
  • SmartChoice Solutions
    SmartChoice Solutions
    • 9 years ago

    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 years ago
  • codebuyer101
    Contest Holder
    • 9 years ago

    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 years ago
  • SmartChoice Solutions
    SmartChoice Solutions
    • 9 years ago

    given the current scenario it would probably be the regex version

    • 9 years ago
  • codebuyer101
    Contest Holder
    • 9 years ago

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

    • 9 years ago

Show more comments Processing...