Search found 87 matches

by bars143
01 Dec 2014 06:40
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Aacini, Great Jobs, seems you are hardworking enough to make new way to help us! well , your new script using your latest Findrepl : echo %text% |FindRepl =search /A =replace input.txt there are two doublecolon : symbols : here there are two doublequotes marks "symbols" here there are less...
by bars143
21 Nov 2014 23:20
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

It is very simple with JREPL v2. As literal values: jrepl ": \q < > ? * \ / | !" "[DC] [DQ] [LS] [GR] [QM] [ST] [BS] [SL] [PI] [EM]" /l /x /t " " /f input.txt Or as a regular expressions: jrepl ": \q < > \? \* \\ / \| !" "[DC] [DQ] [LS] [GR] [QM] [ST] [B...
by bars143
21 Nov 2014 23:02
Forum: DOS Batch Forum
Topic: get current ip and hostname using ping -4 -a ""
Replies: 6
Views: 5093

Re: get current ip and hostname using ping -4 -a ""

it does not need findstr to extract ip adress of hostname.
by bars143
21 Nov 2014 22:42
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

It can be done in one pass, Bars, but the first term using a pipe needs special handling, using findstr V2.0 type inputfile.txt |findrepl "(\|)||!||\*||\?||\\||/||:||'||<||>" /A "'[PI]'||'[EM]'||'[ST]'||'[QM]'||'[BS]'||'[SL]'||'[DC]'||'[DQ]'||'[LS]'||'[GR]'" /J /Q:' thanks Foxi ...
by bars143
21 Nov 2014 20:57
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Aacini, thanks for answer and now my new script is: @echo off echo INDIVIDUAL REPLACEMENT: type inputfile.txt |FindRepl "\|" "'[PI]'" /J >outputfile.txt type outputfile.txt |FindRepl "\!" "'[EM]'" /J >outputfile.txt type outputfile.txt |FindRepl "\*"...
by bars143
21 Nov 2014 18:20
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Bars, did you describe and provide the output that you are trying to get? foxi, i want a question mark symbol "?" displayed as "[QM]" i want a asterisk symbol "*" displayed as "[ST]" i want a backslash symbol "\" displayed as "[BS]" i want...
by bars143
21 Nov 2014 17:27
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Aacini , its working with "/J" switch but i dont know that your machine produced blanks as compared to my windows xp sp3 32it. Bars Note that your code execute these 4 commands: type inputfile.txt |FindRepl "View" /a "displayed" type inputfile.txt |FindRepl "View&...
by bars143
21 Nov 2014 00:14
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Aacini , its working with "/J" switch but i dont know that your machine produced blanks as compared to my windows xp sp3 32it. its really easy to replace multiple string in one go rather using 3 or more pipes. now i will start testing your scripts to be use in extracting webpage title , we...
by bars143
20 Nov 2014 20:40
Forum: DOS Batch Forum
Topic: FindRepl.bat:New regex utility to search and replace strings
Replies: 139
Views: 260313

Re: FindRepl.bat:New regex utility to search and replace str

Hi! Antonio, i have a problem matching uppercase and lowercase in /A switch? inputfile.txt View - leading uppercase view - all lowercase VIEW - all uppercase vieW - trailing uppercase test.bat @echo off echo using leading uppercase with "/i" echo type inputfile.txt ^|FindRepl /i "View...
by bars143
15 Nov 2014 22:30
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 1925110

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

Dave , i have a problem that some webpages title has one ore more of these characters: "|" "?" ":" "\" "/" "=" "<" ">" i can delete these chars "\" "|" ":" "?" "=" by le...
by bars143
15 Nov 2014 11:47
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 1925110

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

aGerman, thanks for the link. Regards back to you. Dave , i have a problem that some webpages title has one ore more of these characters: "|" "?" ":" "\" "/" "=" "<" ">" i can delete these chars "\" "|&quo...
by bars143
15 Nov 2014 01:55
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 1925110

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

@foxidrive - I posted solutions at ComputerHope. I also edited the top post on this thread to briefly describe the difference in syntax between JREPL and REPL. It shouldn't take long to get used to the new syntax. @bars143 - This is really easy (and fast) with JREPL.BAT type test.txt | jrepl "...
by bars143
14 Nov 2014 19:30
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 1925110

Re: JREPL.BAT - regex text processor - successor to REPL.BAT

HI, can you give me script that can extract text between html tags specially <title> tag? findstr cant do when a <title> tag is found in a single line together with a long line of css scripts up to 41KB , the findstr error is "...line 2 is too long string..." here is example of html page (...
by bars143
03 Nov 2014 20:25
Forum: DOS Batch Forum
Topic: js/vbs/html/hta and more hybrids and chimeras in cmd/bat
Replies: 64
Views: 239419

Re: js/vbs/html/hta hybrids and chimeras in cmd/bat

hi siberia-man, your script work when my vbs file converted to .bat with one error corrected as describe below in a comment: pinger.vbs file: ' dont name this file as ping.vbs --it will loop infinitely ' make "Option Explicit" as a comment -- it will not work on cmdize.bat ' Option Explici...
by bars143
31 Oct 2014 10:00
Forum: DOS Batch Forum
Topic: how to catch a remaining files that are below 9-files
Replies: 2
Views: 3182

Re: how to catch a remaining files that are below 9-files

It's great to get a sample of the file - please also explain what it is you are trying to do because 99% of the time, reading code that doesn't work is not very helpful and your readers may have good solutions if you let them in on the task. foxi, thanks for your reply i edited my first post to mak...