Matching Whitespace & Non-Whitespace Character

Sort by

recency

|

120 Discussions

|

  • + 0 comments

    I need some help related yo my website https://yowsap.com/

  • + 0 comments

    It appears to me that this issue lacks clear definition. The initial pattern suggests there should be three pairs of non-space characters, with a single space separating each pair. However, the test cases present inconsistencies. Some have multiple spaces between pairs, while others contain more than two consecutive non-space characters. This makes it difficult to predict which test cases will validate the code and which will not, as different cases seem to support different implementations[.](click here)

  • + 0 comments

    It appears to me that this issue lacks clear definition. The initial pattern suggests there should be three pairs of non-space characters, with a single space separating each pair. However, the test cases present inconsistencies. Some have multiple spaces between pairs, while others contain more than two consecutive non-space characters. This makes it difficult to predict which test cases will validate the code and which will not, as different cases seem to support different implementations.

  • + 0 comments

    They included test cases that didn't match the description of the problem.

    The only pattern to pass all test cases is /^\S{2,3}\s\S{2}\s\S{2,3}$/

    The answer to the problem the way it was described is

    
    
  • + 0 comments

    /(\S{2}\s?){3}/