Regular Expressions for phrase beginning with 'umm'

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
sexy69
Member
Member
Posts: 100
Joined: 2016-06-22, 17:21 UTC

Regular Expressions for phrase beginning with 'umm'

Post by *sexy69 » 2019-01-30, 15:23 UTC

I am looking in the text of a phrase beginning with: umm

I choose "search" from the menu
find text: \bumm
I note: RegWyr(2)
i TC looks for a sentence:
I'll bring Summer tomorrow morning.

User avatar
Stefan2
Power Member
Power Member
Posts: 2395
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Regular Expressions for phrase beginning with 'umm'

Post by *Stefan2 » 2019-01-30, 18:33 UTC

sexy69 wrote:
2019-01-30, 15:23 UTC
--- a phrase beginning with: umm

TC-Help > Operations > Regular expressions

http://www.ghisler.ch/wiki/index.php/Regular_Expressions

^ Line start
\b finds a word boundary




What do you are looking for?

- beginning with "umm"
- or for Summer


I don't get it :(
 

sexy69
Member
Member
Posts: 100
Joined: 2016-06-22, 17:21 UTC

Re: Regular Expressions for phrase beginning with 'umm'

Post by *sexy69 » 2019-01-30, 19:01 UTC

I'm looking for words beginning on: umm
and I find it: Summer instead of umm.

And Summer does not start with: umm
only on: S

I do not understand it either :(

User avatar
Stefan2
Power Member
Power Member
Posts: 2395
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Regular Expressions for phrase beginning with 'umm'

Post by *Stefan2 » 2019-01-30, 19:44 UTC

OK, and you search in a folder with TXT files for files with word starting with 'umm'?


I have this files
Datei no2.txt --- text of a phrase beginning with: umm
File3.txt --------- umm and some other text
Text file 1.txt -- I'll bring Summer tomorrow morning.


and a search for Text \bumm with [x]RegEx2 and ANSI finds no2 and File3, but not file1

Search for ^umm finds File3 only

Search for umm without RegEx finds all three files.



Maybe you should tell about your system, language, encoding?
 

sexy69
Member
Member
Posts: 100
Joined: 2016-06-22, 17:21 UTC

Re: Regular Expressions for phrase beginning with 'umm'

Post by *sexy69 » 2019-01-30, 20:35 UTC

Thanks a lot, it was UTF-8.
Movie subtitles are most often in UTF-8.

Post Reply