Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regex - Pattern matching

Status
Not open for further replies.

Extension

Programmer
Nov 3, 2004
311
0
0
CA
Hi,

I have a string in the following format: PRA-PRB-PRC-PRD
Now I want to separate the string into 4 strings. (PRA, PRB, PRC AND PRD) Is there an easy way to do this.

Thanks in advance.


 
Just turn it into a list and use "-" as the delimiter.



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
yeah, you can use listChangeDelims too

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top