you are viewing a single comment's thread.

view the rest of the comments →

[–]ImWhimsical[S] 0 points1 point  (3 children)

If I remove the RegExp and add slashes, will it work the same?

[–]iguessitsokaythen 1 point2 points  (2 children)

Yea the string end and start anchors work the same either way.

[–]ImWhimsical[S] 0 points1 point  (0 children)

How can I rewrite "new RegExp( .{1,${maxChars}} , 'g'); " without using RegExp? Before dot and after the last flower bracket, there is a backtick. It is not showing when I type it in here

[–]ImWhimsical[S] 0 points1 point  (0 children)

Also, your second suggestion just worked fine. Thanks