[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] how to gid rid of "" when field include spaces/special characters ??
****** message to minivend-users from Murray Gibbins <murray@scotweb.ltd.uk> ******
"Tal Hart (TelNET)" wrote:
>
> ****** message to minivend-users from "Tal Hart (TelNET)" <tal@telnet.co.il> ******
>
> We use a TAB Delimited text file as our DB source...
> when an item includes spaces or special characters in it,
> it will show up with " before and after the field ... I.E. :
> Product : "Brother HL-1240 Laser Printer"
> instead of plain : Product : Brother HL-1240 Laser Printer
>
try regex ...
"(\\"|[^"\\]*)"
what you want will be in $1
This was taken from "Mastering Regular Expressions, by O'reilly".
--
____
\__/ Murray Gibbins murray@scotweb.ltd.uk
/ \ Programmer
_ \__/ _ ================================================
\\ || // Scotweb Limited, info@scotweb.ltd.uk
\\||// 13a Albert Terrace, http://www.scotweb.ltd.uk
\||/ Edinburgh EH10 5EA Tel: +44 (0) 131 270 82 33
|| Scotland. Europe. Fax: +44 (0) 7020 93 49 04
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list