Skip to main content

All Questions

Tagged with
1 vote
0 answers
14 views

How to parse pdf in r and then correctly convert or extract spaced/tabbed pieces of text into columns of dataframe?

I am reading a pdf in r using library(pdftools) library(tidyverse) library(pdftools) library(lubridate) pdf_rowwise <- strsplit(pdf_text("V://path//sample.pdf"), split = "\n") ...
ViSa's user avatar
  • 1,727
-1 votes
0 answers
19 views

Issue with RegexParsing in Dart [duplicate]

I have been trying to parse Markdown using Regex for a project of mine Here's the code: void main() { String s = """Here is the job description: Job Title: Wordpress Developer Job ...
Manas Hejmadi's user avatar
0 votes
0 answers
47 views

Multiline parser for python log format using fluent-bit. getting single line log entry on elastic while i want it to be a single block

sample log entry - 2024-06-14 06:51:58.906 | INFO | __main__:main:30 - All indicators and predictions: [ { "datetime":1718308800000, "key1":66701.7292561551,...
Akshat Sharma's user avatar
0 votes
0 answers
29 views

Issues Parsing Nested WordPerfect Forms with C# and WP_Reader

I'm working on a C# project that involves parsing WordPerfect documents to identify and process nested forms. The program is called WP_Mapper, and it uses the WP_Reader library to parse WordPerfect ...
Dylan M. Loszak's user avatar
0 votes
2 answers
86 views

String to object and dot notation (Javascript) [closed]

In the application I am working on, I have some configuration stored in a memo field in object literals. { JWT : { endpoint :"https://somelink1", clientid :"...
David Garcia's user avatar
  • 3,174
1 vote
1 answer
58 views

A regex line to remove whitespaces unless within double quotes, taking into account escaped double quotes

I am parsing some game config files using Python and putting it all in dictionaries. It seemed to all work well until I encountered the following edge-case: random_owned_controlled_state = { ...
lrdewaal's user avatar
  • 180
0 votes
0 answers
59 views

Regex expressions any suggestions where i am wrong in my code

Here is my convertor to parce SQL into java Objects. Basicaly I am getting and sql query with only select part ( without from and select ) select case when nvl(document_type_name,'') in ('-','') then ...
Nina Fidarova's user avatar
2 votes
1 answer
54 views

Python Parsing (separate statements and/or blocks) a C# code - regex or machine state

I need to parsing a C# code. Just separate the statements, considering break lines. Need to ignore comments, multiline comments, verbatim strings and multiline verbating strings. What i try... I ...
Shoo Limberger's user avatar
1 vote
1 answer
68 views

How to select markdown text under heading containing a keyword with regexp?

I am trying to match content under a specific heading level when title contains a [[Wikilink]] keyword (use case: Obsidian) I want it to match lower level headings. Example [[Wikilink]] is in an H2, ...
Nicolas LIENART's user avatar
0 votes
0 answers
49 views

Confusion around Lark priorities

I'm using lark, an excellent python parsing library. It provides an Earley and LALR(1) parser and is defined through a custom EBNF format. (EBNF stands for Extended Backus–Naur form). Lowercase ...
VicVic's user avatar
  • 43
1 vote
1 answer
57 views

Pyspark - Parse dates between multiple forward slashes

I have a spark dataframe with multiple columns, one of which I want to parse out dates from as a separate column. For the following two rows, the expected output would be the following: 'www....
SunflowerParty's user avatar
2 votes
2 answers
69 views

Regex/algorithm in Python to extract comments from class attributes

Given the code for a class definition, I am trying to extract all attributes and their comments ("" empty string if no comments). class Player(Schema): score = fields.Float() "&...
gameveloster's user avatar
  • 1,363
1 vote
2 answers
129 views

Regex to detect optional comment blocks followed by conditional blocks

I'm trying to write a script to detect and remove a #ifdef BUILD_FLAG ... #endif block from files with an optional comment block if it occurs right before it. So something like this will be removed //...
shjnlee's user avatar
  • 243
0 votes
2 answers
109 views

Regex to detect #ifdef BUILD_FLAG ... #endif with optional multiple nested #if #elif #endif blocks

I'm trying to write a script to detect and remove a #ifdef BUILD_FLAG ... #endif block from files. So something like this will be remove #ifdef BUILD_FLAG ... #endif inside the #ifdef ... #endif, ...
shjnlee's user avatar
  • 243
0 votes
0 answers
44 views

Parse text file of multiple different SQL statements into array of each statement

I have SQL statements in a text file. I want to have an array of each statement. Something like that: sqlScript.split(/;[ ]*?\n*/).filter((stmt) => !isEmptyScript(stmt)); But this only efficient ...
Ooss's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
236