|
Um, can't you just test for the RegEx and if not found add the string? Or to be more precise, if found do nothing, else add the string?
This is more like a sed script ... part of the jedit package. I
I figured it out though ... I used 'negative look ahead'
(^((?!regex).)*$)
Don't really understand it, but it worked.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.