# A Working Mathematician's Guide to Parsing

DevFeed: [A Working Mathematician's Guide to Parsing](<https://devfeed.tech/articles/a-working-mathematician-s-guide-to-parsing-40428.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2019/04/20/a-working-mathematicians-guide-to-parsing/>)

Published: 2019-04-20T17:51:51Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Parsing](<https://devfeed.tech/topics/parsing.md>), [LaTeX](<https://devfeed.tech/topics/latex.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>), [syntax](<https://devfeed.tech/topics/syntax.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [guide](<https://devfeed.tech/tags/guide.md>), [latex](<https://devfeed.tech/tags/latex.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [programming](<https://devfeed.tech/tags/programming.md>), [regular-expressions](<https://devfeed.tech/tags/regular-expressions.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

## AI overview

This tutorial explains how to convert LaTeX math delimiters for a blog platform when simple find-and-replace is insufficient. It introduces text manipulation approaches, including regular expressions and a program built from scratch, using basic Python or Perl tools.

## Source excerpt

Our hero, a mathematician, is writing notes in LaTeX and needs to convert it to a format that her blog platform accepts. She's used to using dollar sign delimiters for math mode, but her blog requires \( \) and \[ \]. Find-and-replace fails because it doesn't know about which dollar sign is the start and which is the end. She knows there's some computer stuff out there that could help, but she doesn't have the damn time to sort through it all.