Jump to content

SPLIT PREG_MATCH etc...


emexinc

Recommended Posts

...i can't seem to wrap my head around this...

 

...i have tried SPLIT, PREG_MATCH, and numerous other methods, only to achieve nothing...i'm trying to create a 'filter' prior to importing data into a database...

 

...examples...

string                          output one            output two

xr4004m                    xr4004                    m

4004m                        4004                      m

4004mi                      4004                      mi

 

...i need the letters in front of the numbers (both of which vary in variables) if applicable to be one output string, and i need the letter(s) behind the numbers to be the other output string...i hope this makes sense...thanks...darwin

Link to comment
https://forums.phpfreaks.com/topic/189818-split-preg_match-etc/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.