Search found 3 matches

by ensign
14 Sep 2017 07:01
Forum: DOS Batch Forum
Topic: Please help creating search pattern (for findstr.exe)
Replies: 2
Views: 2269

Re: Please help creating search pattern (for findstr.exe)

aGerman wrote:

Code: Select all

findstr "\<A_[A-Za-z0-9][A-Za-z0-9]*_f[ ]*([ ]*[-]*[0-9.][0-9.]*[ ]*)" "test.txt"

Note that FINDSTR always outputs the entire line where the pattern was found.

Steffen

Thanks !
by ensign
14 Sep 2017 07:00
Forum: DOS Batch Forum
Topic: Regex search with grep: How to get only search pattern as result and not whole line?
Replies: 2
Views: 2516

Regex search with grep: How to get only search pattern as result and not whole line?

Hello,

may I ask if it is possible to get grep.exe to return only result of seach pattern and not any (complete) lines which contain the seacht pattern?

(I'm using Gnu Grep V2.5.4 for Windows 7)

Thanks for any hint.
by ensign
08 Sep 2017 08:27
Forum: DOS Batch Forum
Topic: Please help creating search pattern (for findstr.exe)
Replies: 2
Views: 2269

Please help creating search pattern (for findstr.exe)

Hello, may I ask here for help making the right search pattern. I'm using findstr.exe (Windows 7). Text which I like to find in a huge textflile looks like: : A_BmwThZel_f (123.456) /* sfssfsfsfsf */ or A_BmwThZel2_f ( -123.0) /* */ or A_BmwThresholfForSpeedCal_f (3.00023456789) gggg_rrr---ii Text b...