preg-split
Break a string into parts, returning all characters
I want to break a string according to the following rules: all consecutive alpha-numeric chars, plus the dot (.) must be treated as one part[详细]
2023-03-15 12:09 分类:问答I need PHP help opening a CSV file into an array, altering the data, and then overwriting the original CSV file with the altered data
I nee开发者_StackOverflowd to pull data from a CSV file to use in reporting. However, the exporting software does not have the capability to export it in a useful format. Using PHP I would like to tak[详细]
2023-03-13 21:23 分类:问答how to remove multiple slashes in URI with 'PREG' or 'HTACCESS'
how to remove multiple slashes in URI with \'开发者_开发百科PREG\' or \'HTACCESS\' site.com/edition/new/// -> site.com/edition/new/[详细]
2023-03-12 12:22 分类:问答Split string by delimiter, but not if it is escaped
How can I split a string by a delimiter, but not if it is escaped? For example, I have a string: 1|2\\|2|3\\\\|4\\\\\\|4[详细]
2023-03-11 09:14 分类:问答php separating words by using regex
I have a string and it contains some words that I want to reach, seperators can be any string that consist of ,; or a space.[详细]
2023-03-02 03:09 分类:问答Extract whatever is in brackets using regular expressions
I really don\'t understand regex at all, and it hurts my head. I\'ve a bit of t开发者_运维问答ext which looks like this[详细]
2023-02-19 21:06 分类:问答Using explode, split, or preg_split to store and get multiple database entries
I\'m trying to figure out how and which is best for storing and getting multiple entries into and from a database. Either using explode, split, or preg_split. What I need to achieve is a user using a[详细]
2023-02-19 15:09 分类:问答PHP preg_split IPs in a string
I am trying to use preg_split in PHP to break up the following string and return me the 2 ip addresses:[详细]
2023-02-13 00:50 分类:问答php preg_split() to find text inbetween two words
how do I use preg_split() to grab the value between [item:1] and [/item:1] $query= [item:1] my content [/item:1];[详细]
2023-02-10 19:59 分类:问答PHP split to preg_split()
I wanted to convert the following split function, which I have been using to preg_split.. it\'s a little confusing, because the value will change from time to time...[详细]
2023-02-05 17:40 分类:问答