I havenāt used Drafts for ages. The new custom syntaxes looks very interesting. Maybe I need to take another look.
I havenāt used Drafts for ages. The new custom syntaxes looks very interesting. Maybe I need to take another look.
@matke My brain hurts when I see regex. Maybe I ought to learn more about it, so that I can unhurt. š¤
@odd Regex is a wonderful thing and well worth spending a bit of time learning at least some basics.
@Miraz Yes, I see how knowing the basics really would be helpful for text manipulation, itās just that I think itās very hard to read, (to the untrained eye, at least).
PS: Iām wondering if I shouldnāt take the crossword puzzles tutorial too. But the class you signed up for was full, so I have to pick a later one.
@odd It is hard to read, but just like with reading books, you donāt start with the 800 page densely written novels, you start with the ABCs. A tiny bit of Regular Expressions can go a long way.
@Miraz Yes, thanks! š I just skimmed through it. My head is in hibernation just now, so I think Iāll look closer at it tomorrow.
@odd š My only worry is that some Grep expert will jump in and say: āOf course you could do all that with this more elegant [much more complex pattern]!ā But explanation rather than elegance was my goal.
@Miraz Thatās what I tell myself, spend some time learning regex, and then I look the other wayā¦or find another way to find a solution. I just know the satisfaction that I feel when I make just a little progress.
@Miraz That was very helpful. Thank you. I am going to save it for future reference. Like you I have BBEdit, and see that it has a very comprehensive Help section on grep. Taking a deep breath and diving in!
@crossingthethreshold Ah yes, BBEdit uses slightly different things ā eg find ([a-z]+) and replace with \1 but the user manual is extremely helpful. Also, under the Search menu be sure to choose Pattern Playground which will show the results live without implementing them.
@Miraz Pattern Playground sounds like something I should use. I can imagine me making one or two mistakes as I figure this out. But thank you for the kick start!
@crossingthethreshold 𤣠āOne or two mistakesā. If you do that youāll be a genius! Always work on a copy ā I learned the hard way. Iāve made so many mistakes! Itās easy to accidentally replace the whole document with something, instead of just the bits you meant to replace.