The upcase is a lisp function and the \1 means the 1st captured string in your regex pattern.įor a more complex example in using the \, in replacement, see: Regex Replace with a Function in Emacs Lisp. After you check the download for my digital signature (right-click, 'Properties', 'Digital Signatures' - thats a good habit to get into), run the installer you just downloaded. To Download it - click the green button above for your CAD. The \, tells emacs that what follows should be a lisp expression. CAD Replace runs on Windows 7 - 10, 圆4, it runs in AutoCAD or BricsCAD, depending on which one you download.
To make your captured pattern upper case, give your replacement string thisĮxpression: ^\,(upcase \1). So, you use a pattern that catches the first letter of each line, like this ^\(\). Too bad that the window cannot be moved and the path cannot be edited in the text box and the exe. Suppose you want all paragraphs to start with a capital letter. Princess Tana is still waiting for her prince. There is a dragon who lived in the river. If you are doing a regex search, and you want to force the replacement to upper case or lower case, in the replace prompt, give \,(upcase \1) or \,(downcase \1). Emacs: Regular Expression Case Sensitivityįorce Case Change on Matched Text in Regex Match.Emacs: How to Insert a Tab Character or Newline.