RegEx search end of string
#1

I don't have any experience in RegEx and I come across some problem.
I want to search a command string that ends with a letter 's'
example: cmd:fireworks, cmd:houses, etc.


I've been searching and trying through online website but still I don't get it.
Reply
#2

To be more precise:

Code:
CMD:([A-Z])+s\b
So it only returns you commands that ends with "s".
Reply
#3

Quote:
Originally Posted by Y_Less
View Post
That's quite wrong, unless all your commands are only uppercase letters.

Code:
YCMD:([\w@]*[sS])\b
Only if case sensitivity is activated, vscode allows the toggle and by default it's not ticked, and yes I didn't think of adding symbols and numbers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)