Regex help [SOLVED]
Thread poster: Erik Freitag

Erik Freitag  Identity Verified
Germany
Local time: 07:49
Member (2006)
Dutch to German
+ ...
Nov 3, 2013

Dear colleagues,

I'm looking for a regex that will show all segments that consist of a dot (".") only. No success so far, but my knowledge about regex is very limited. I'd be very grateful for any help.

Kind regards,
Erik

Edit: Just found a solution: ^[\.]$



[Bearbeitet am 2013-11-03 14:27 GMT]

[Bearbeitet am 2013-11-03 15:33 GMT]


 

FarkasAndras
Local time: 07:49
English to Hungarian
+ ...
[] Nov 3, 2013

That will work, but the [] is not necessary. ^\.$ will do the same thing.
[] creates a 'character class'. For instance, you would need it for matching a line that is made up of a single dot, comma or semicolon: ^[\.,;]$
As you only have only one character in there, there is no need for the brackets.


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Regex help [SOLVED]

Advanced search







SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search