• + 0 comments

    const re = /^([^.^\s].){1}[^.]$/

    const re = / ^ ( open_square_brackets ^ backslash . ^ backslash s closed_square_brackets * backslash . ) { 1 } open_square_brackets ^ backslash . closed_square_brackets * $ /

    Start pattern has (anything except a dot or space, then a dot.). Start pattern repeats once. After that anything except a dot.

    The backslashes do not show up correctly inside the square brackets so the pattern is written above with text.