You are viewing a single comment's thread. Return to all 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.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 7: Regular Expressions II
You are viewing a single comment's thread. Return to all comments →
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.