Nov 17, 2014; 13:06
Jon Harris
Stuck on Regex [LP8.6]
Hi Lists
I am importing some data from a clients' stock list, and I need to group similar products together.
Typical product descriptions:
"'13 (10) Home Polo Shirt (Blk)"
"'13 (12) Home Polo Shirt (Blk)"
I want to use regex to remove the size, which is always the first brackets in the string, so for my two products I would be left with.
"'13 Home Polo Shirt (Blk)"
"'13 Home Polo Shirt (Blk)"
I used an on-line regex building page which gave me this:
\(.+?\)\s*
When I insert this in a RegExp expression, it doesn't work.
var('x') = RegExp(-Find='\(.+?\)\s*', -Replace='', -Input=(var('theproduct') ) ;
I must be missing slashing something off somewhere.
Can someone correct my expression?
Thanks for any pointers.
Jon Harris
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Nov 17, 2014; 14:28
Jolle Carlestam
Re: Stuck on Regex [LP8.6]
Nov 17, 2014; 08:37
Brad Lindsay
Re: Stuck on Regex [LP8.6]