deletion of the letter followed by three of the four digits in php
source link: https://www.codesd.com/item/deletion-of-the-letter-followed-by-three-of-the-four-digits-in-php.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
deletion of the letter followed by three of the four digits in php
I'm trying to remove part of string in my php script. The strings will be similar to this one: Samsung I8730 Galaxy Express
I need to remove part "I8730", this will be used on other models like "i9500", "B2100", etc. etc.
Please assist with some preg_replace pattern or something that will fix this problem.
Thanks.
A letter is [A-Za-z]
. A number is \d
.
/[A-Za-z]\d{3,4}/
Related Articles
How to match a uppercase letter followed by the corresponding lowercase letter?
Delete from the statement using aggregates in the HAVING SQL Server 2008 clause
Why does git rebase delete a file added in the last commit if it was deleted by the rebase branch?
how to delete the specified line from the html table and also in the mysql table using php
Checkbox Deletion - If the declaration in the For loop deletes the bad entries
Regular expression lowercase letter followed by a number
How do I delete all the e-mail not in the important or sent folder?
Method in the administration tool deleting all the contents of the file
The pruning branches have been deleted in the upstream Git account but still exist in my range
Cascading Deletion in the Gaming Frame - How to Model Entities
Leave only the new NN entries and delete all the rest
Python regular expression r prefix followed by three single quotes (or double)
Git: find & ldquo; file delete & rdquo; the operations
Is an object pointer in a vector deleted if I call delete on the object?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK