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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.