Regex for quotation marks.

Anonymous
Offline Anonymous

I would like to add some regex into my QA checker to search for quotations mark such as
"
«
»

And those alternatives with spaces too.

I do not know if someone can help me with this but even after a some research, it does not seem to work. Any suggestion on Regex to search these items in a sdlxliff file?

Thank you very much for you help!

Parents Reply
  • Hi Marine,

    Maybe these three rules would do you?

    - "xxxxxxxxx" (without spaces)

    "\S*?"

    - " xxxxxxxxx " (with spaces)

    "\s.*?\s"

    - « xxxx » (with spaces)

    «\s.*?\s»

    Then make sure you  use this option:

    So this will find all cases where these conditions exist.  It won't find the cases where they don't exist because this would be a little tricky and probably find every segment in the file where quotes are not being used... not really what you want  You have to look at cases where quotes are used and think about how they are misused and then write the rules to find the misuse.  If they are matching the source in some way it's easier because you have something to compare to.

    Does this help?

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children