Answer the question
In order to leave comments, you need to log in
How to write a regular expression to remove the end of a string?
There are articles like tr98000-TS, we98010-TS, etc. in the database (.sql file).
I need to remove everything after the hyphen along with it to end up with tr98000, we98000, etc.
If I make an expression for searching -TS , then important things like product1 -TS .jpg are deleted from the database.
How can I make an expression to find -TS exactly after any 2 alphabetic characters followed by 5 any digits?
Answer the question
In order to leave comments, you need to log in
How to compose an expression to find -TS exactly after any 2 alphabetic characters followed by 5 any digits?
https://regex101.com/r/GO1dm1/1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question