Solved

remove multiple ||

Posted on 2007-03-26
1
158 Views
Last Modified: 2010-03-05
Hi all

I need a regex that will remove mutiple |||||

Example: |||||data|data|||data|data||

Result: |data|data|data|data|
0
Comment
Question by:blnukem
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 18794587
s/\|+/|/g
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 101
How to strip .csv from file name 9 81
grep that displays 4 lines above & 1 line below of what's found 10 80
Edit Odbc.ini using perl module 2 83
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question