Hi Guys
I am using the following regex ^sometext$ to have an exact match of two words the problem i am facing now is that when sometext uses parentheses the expression is not working to be more specific if i have the text S UK 10-15 everything is fine while if the text is S (UK 10-15) i am not able to match so how can i deal with those parentheses in a way to be considered part of the string?
You should be able to escape the “(” and “)” characters by placing a “\” character before them in your regex expression. So whichever part of your regex expression references ( should instead reference \( and whichever part references ) should instead reference \).
@sam.morgan thanks for your reply but let me explain my problem better…i use the expression find and replace with regex because what i need to do is
I have a list of text like S (UK 10-15), M (UK 20-25) and i want to find (using regex because i need a perfect word match) let’s say S (UK 10-15) and replace it with L (UK 30-35) then i will translate this list to a text and use it to filter a search where a product has title =the text i create from my list of text…so i need to include parentheses as part of the string