| | #1 |
| Warrior Member Join Date: 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
| For instance, I have the following string: table:column I need to get "table" as the result of the php regular expression. So, I need everything before the ":" symbol After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well. |
| | |
| |
| | #2 |
| Software Engineer War Room Member Join Date: 2008 Location: Asheville, NC USA
Posts: 693
Thanks: 37
Thanked 112 Times in 100 Posts
|
Using a regular expression here is not what you need. Instead, you should explode the string using the ":" as the delimiter. The explode() function splits up strings into an array, using whatever symbol you like to break it. PHP Code: |
| I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs | |
| |
|
| Bookmarks |
| Tags |
| character, expression, php, regular |
| |