Ad
  • Custom User Avatar

    Use regex for simple operations like this is not efficient, you can make some benchmark and check that.
    Regex is more expensive that make a simple loop and check character by character.