how to add quotes each word in string(these are my attributes name)

User: "sgnarkhede2016"
New Altair Community Member
Updated by Jocelyn
how to add quotes each word in string(these are my attributes name)

e.g.
query=Sachin,Amit,Clara,Josef'

it should be converted into
query='Sachin','Amit','Clara','Josef'

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "kayman"
    New Altair Community Member
    Accepted Answer
    \^ escapes your special symbol, so instead of starting at the beginning of your attribute (what would happen with ^) your expression is now looking for the character ^ instead.

    You will also only find matches that are word + word, so if your attribute is existing of a single word it will fail also.

    What would probably work better is something like this : 

    ^(.*)$ which means just select my whole attribute value from beginning to end, and replace with "$1" , so quot + stored result + quote