First of all, what version of Excel are you using?
Second, are you looking for an Excel Function solution
or a VBA solution?

Third: I seem to vaguely remember PHP and regex,
but your syntax doesn't ring a bell.

I can't tell if you're matching a single character, or a string.
so, perhaps you can describe your text string better.

Is it delimited?

Is this something you want to do once? 
or every day for the rest of... the week/month/year/forseeable future?

there's lots of ways to split your string,
Which to use depends on if the string is delimited,
or if each portion is a fixed length, or...

so, please... give us some more to work with...

Paul



________________________________
From: Onefunction <[email protected]>
To: MS EXCEL AND VBA MACROS <[email protected]>
Sent: Wed, December 16, 2009 8:45:36 AM
Subject: $$Excel-Macros$$ I need a macro to split a string using regex

Hi,

I need a macro to split a string in one column, and then place the
three split parts into three seperate columns, I currently use PHP
with a regex string of '/([A-Z]+)([0-9]+[A-Z]?+)\s+([0-9]+)/i' to
split it up, is there a way of doing it in excel, say for example
Column B has the string, and I want to place the remaining three parts
in Columns D,J and M, can anyone please help?

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com


To post to this group, send email to [email protected]
If you find any spam message in the group, please send an email to:
Ayush JainĀ  @ [email protected] or
Ashish Jain @ [email protected]
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to [email protected]
If you find any spam message in the group, please send an email to:
Ayush Jain  @ [email protected] or
Ashish Jain @ [email protected]
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe

Reply via email to