Message-ID: <CAN2xGJZsP8WDhsvCQt2tjvEbcW_OT3QVsyMvBqTVqLu+hfZD=g@mail.gmail.com>
Date: 2015-04-20T14:05:01Z
From: Dimitri Liakhovitski
Subject: regexpr - ignore all special characters and punctuation in a string
In-Reply-To: <CAN2xGJb=n+jVyQGih_mgrjiHXEBiDtm0xeCUEDrVTrzhYu9w+g@mail.gmail.com>
I think I found a partial answer:
str_replace_all(x, "[[:punct:]]", " ")
On Mon, Apr 20, 2015 at 9:59 AM, Dimitri Liakhovitski
<dimitri.liakhovitski at gmail.com> wrote:
> Hello!
>
> Please point me in the right direction.
> I need to match 2 strings, but focusing ONLY on characters, ignoring
> all special characters and punctuation signs, including (), "", etc..
>
> For example:
> I want the following to return: TRUE
>
> "What a nice day today! - Story of happiness: Part 2." ==
> "What a nice day today: Story of happiness (Part 2)"
>
>
> --
> Thank you!
> Dimitri Liakhovitski
--
Dimitri Liakhovitski