Detecting language please wait for.......
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!
Maybe these three rules would do you?
- "xxxxxxxxx" (without spaces)
- " xxxxxxxxx " (with spaces)
- « xxxx » (with spaces)
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?
I like that you try to get these rules into one expression... but worth noting a few things to be careful with.
I like the concept "economy of accuracy" but sometimes it pays to be a little more specific.
In fact I need to correct one as it's wrong. This is better like this otherwise you can't have more than one word between the quotes: