Search found 2 matches
- Thu Nov 30, 2006 7:28 pm
- Forum: Regex
- Topic: Regex question
- Replies: 4
- Views: 3200
You gave us two different strings as the starting point. Which one to use? {test{hello},{world}} {test,{hello},{world}} Starting from the second string, I came up with the regex below. preg_match_all('/(?<=,)(?:{.+?})/', '{test,{hello},{world}}', $matches); // contents of $matches: Array ( [0] => A...
- Wed Nov 29, 2006 10:38 pm
- Forum: Regex
- Topic: Regex question
- Replies: 4
- Views: 3200
Regex question
can someone figure out how to get regex working for a code like Code: {test{hello},{world}} this type to show 3 results {test,{hello},{world}} -- no change {hello} -- only the hello {world} -- only the world current regex code i came up with only catches one match {...text...} and cannot include { a...