RegEx search end of string - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RegEx search end of string (
/showthread.php?tid=665540)
RegEx search end of string -
Fairuz - 08.04.2019
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.
Re: RegEx search end of string -
TheToretto - 08.04.2019
To be more precise:
So it only returns you commands that ends with "s".
Re: RegEx search end of string -
TheToretto - 08.04.2019
Quote:
Originally Posted by Y_Less
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.