Page 2 of 2 <12
Topic Options
#76951 - 2003-10-01 10:11 PM Re: Replace with nothing or NULL
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You should definitely by able to change "\x20\x1B\x1B\x0A" to "\x20\x1B+\x0A" and reduce the number of times executed by 1.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#76952 - 2003-10-02 04:43 AM Re: Replace with nothing or NULL
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I have edited my last post with code on this. This project is little outside of what we are supposed to be doing. The problem, is that we have an old Loan submission program, that the clients pull credit with. The thing is that the there is about 3-4 files a day that get corrupted. Yes, we are in the process of working with the Vendor to get this corrected.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#76953 - 2003-10-02 05:33 AM Re: Replace with nothing or NULL
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You might be able to eliminate the second SHELL statement by changing "\x20\x1B+\x0A" to "\x20\x1B+\x0A|[^\x20]\x1B+".

This is an OR condition where the RegEx engine will match "\x20\x1B+\x0A" or "[^\x20]\x1B+". The [^\x20] says any character that is not a "space". This makes the two condition mutually exclusion and therefore should run smoothly without stepping on each other.

Give it a try and let me know.

[ 02. October 2003, 05:34: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#76954 - 2003-10-02 02:25 PM Re: Replace with nothing or NULL
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Argh!!! What was I thinking?

Kyder ignore the last post as the logic "[^\x20]\x1B+". will also remove the character before the \x1B as well. Sorry for the brain fart.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 685 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.046 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org