- Posted by
- Thank you. I now know how to copy a block of text from a DOC file, into UE via the "Edit->Past Special->HTML Source" command. That's something new for me - I didn't know how that worked. But does that solve my problem? No, I'm afraid it doesn't. Instead of ZERO mark-up from a DOC file, I've now got ...Posted in UltraEdit General Discussion
-   Topics
-   Views
- fvgfvg
Mar 05, 2014
- Just so we don't get our wires crossed, Mofi. (Sie können einem aber ganz ordentlich die Ohren waschen - meine Güte..!) I've been experimenting with trying to get simple MS-Word mark-ups into UE: italics, bold. (I am, I believe, perfectly aware of the difference between an application designed for w...Posted in UltraEdit General Discussion
-   Topics
-   Views
- fvgfvg
Mar 04, 2014
- Thank you Mofi. One always learns from your careful explanations. I'll experiment a bit with the possible MS Word export filters, and try to figure out just what those "paste special" commands in the "Edit" menu are for ("HTML source" and "raw RTF"). If I understand you correctly the "File Types" he...Posted in UltraEdit General Discussion
-   Topics
-   Views
- fvgfvg
Mar 02, 2014
- The UE "File" -> "Open" menu has, as possible file extension for input, the "DOC" extension. But it's seemingly broken, opening the file in hex mode, and then that's it. Is this a bug? At the moment, to input DOC files into UE, I have first to output my MS Word files to a .TXT format, before importi...Posted in UltraEdit General Discussion
-   Topics
-   Views
- fvgfvg
Mar 02, 2014
- I have text like this: [1] text text text text text. [2] text text text text text. ..... [40] text text text text. The following routine should capture the digit (or string?) into footnoteNr. In RegexBuddy it works, according to the Mozilla documentation it should work, but in fact it doesn't. What ...Posted in Scripts
-   Topics
-   Views
- fvgfvg
Feb 20, 2014
- Thank you very much. I've now learnt that it's possible to select a string, parse it and assign it to a variable all in one command. Elegant. It's the last alternative: if(UltraEdit.activeDocument.findReplace.find("(?<=<\\$!!TITLE_)[^>]+")) { var sTitle4 = UltraEdit.activeDocument.selection; } And I...Posted in Scripts
-   Topics
-   Views
- fvgfvg
Feb 10, 2014
- There's a distinction, I've learnt from Mofi, between the replace function of the UltraEdit document object and the replace function of a Javascript String object. (JSO) I capture and define a new string variable TITLE like so, and it works just fine: while(UltraEdit.activeDocument.findReplace.find(...Posted in Scripts
-   Topics
-   Views
- fvgfvg
Feb 09, 2014
- Wow.. thank you Mofi. Up to now my faith in RegexBuddy has been absolute ... Seems what works there doesn't always work under UE. What I've just learned is that character set arguments [...] will work within lookaround constructions - I'll be using that a lot. The (?:'|’) I'll have to play around wi...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fvgfvg
Feb 03, 2014
- The following regex: UltraEdit.activeDocument.findReplace.replace("((?<=\\R)|(?<=\\s)|(?<=>)|(?<=\\))|(?<=F)|(?<=\\())('|‘)(.*?)('|’)(?!s)(?!r)(?!t)(?!m)","xxx\\3xxx"); is meant to match on single quotation mark sets, (as in the test block below) with positive lookbehinds for newline, blank, ( and >...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fvgfvg
Feb 02, 2014
- It's two years on, but I'm still having problems with this bit of code. I want to iterate through all instances of "<<" in this file, replace it with a bit of code, and then increment a number. What I've now managed to get to work, to date, is this, and it seems not to mind which of the regex flavou...Posted in Scripts
-   Topics
-   Views
- fvgfvg
Jan 18, 2014
- Thank you Mofi... It's working like a charm. Don't know what I'd do without you. (Looks like the RegexBuddy 'copy' command doesn't know about the particular Perl 'flavour' of UE scripts..) Best, fvgfvgPosted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fvgfvg
Mar 28, 2013
- Mofi, thank you. I've been trying this out. In RB (RegexBuddy) it works perfectly well. The trouble is that when I insert it into my UE script it doesn't work. RB provides different options: a copy 'as is', or as a 'perl-style' string: 'as is': <\$F((?:[\s\S]+?))>(?<!<>)(?<!< >)(?<!< >)(?<!<I>)(?<!<...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fvgfvg
Mar 28, 2013
- I'm trying to write a script to identify footnotes in a Ventura text file. Such footnotes have the format: text text <$Ffootnote footnote footnote > text text That looks straightforward enough - except that Ventura has various other control characters of the type <I>, <I*>, <->, <N>, <> and so on th...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- fvgfvg
Mar 27, 2013