Questions tagged [text-parsing]

Text parsing is a variation of parsing which refers to the action of breaking a stream of text into different components, and capturing the relationship between those components.

When the stream of text is arbitrary, parsing is often used to mean breaking the stream into constituent atoms (words or lexemes).

When the stream of text corresponds to natural language, parsing is used to mean breaking the stream into natural language elements (words and punctuation) and discovering the structure of the text as phrases or sentences.

When the string of text corresponds to a computer source language (or other formal language), parsing consists of applying any of a variety of parsing algorithms (ad hoc, recursive descent, LL, LR, Packrat, Earley or other) to the source text (often broken into lexemes by another lower level parser called a "lexer") to verify the validity of the source language, and often to construct a parse tree representing the grammar productions used to tile the text.

1268 questions
-3
votes
1 answer

SQL Server key value pair convert varchar to numeric without exceptions

I'm looking for tips on putting together a user defined function to convert a varchar to numeric. The trick is i'm after one that converts common text representations of strings to numeric. Also, if it can't be parsed as a numeric, i'd like it to…
user1788158
  • 29
  • 1
  • 4
-4
votes
2 answers

Decrement two numeric substrings in a year span expression

I am trying to minus or subtract by 1 the academic year of school year with this format, e.g. "2020-2021" If it is 2020-2021, I would like to change it 2019-2020. Is there a way to solve this concern? I considered trying to subtract using a…
jovlog
  • 1
  • 1
-4
votes
2 answers

Convert string of parenthetical texts to HTML option tags

Please tell me if there is such a php code.