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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expression to do ...=split(/@/,var); ?

Status
Not open for further replies.

browserice

Technical User
Aug 20, 2006
21
US
I have a record where 2 values are seperated by a '@'.
value1@value2

The split(/@/,var) doesn't work and I am guessing because in this case the '@' means something else. So there should be someother regular expression in there to match the '@'.

I searched a few regular expression links but since I rarely use them, I am having a hard time finding the right thing.

Can someone help ?
 
Code:
split(/\@/,$var)

- Kevin, perl coder unexceptional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top