add space between number and string python [closed]
I want to add space between number and text Example string: ABC24.00XYZ58.28PQRoutput: ABC 24.00 XYZ 58.28 PQRPlease let me know the answers.Thanks a lot.
View ArticleExtract and replace text matching multi-line pattern after keyword
I am trying to transform a yaml document in order to make it easier to parse later in my project. I have output that looks like this:I want to use regex to find all occurrences of: Export: Name:...
View ArticleHow to parse a duration string into seconds with Javascript?
I'm trying to parse a user input string for duration (into seconds) with Javascript. Here are some example inputs that I'd like to be able to deal with:"1 hour, 2 minutes""1 day, 2 hours, 3 minutes""1d...
View ArticleShould regular expressions be avoided for performance reasons?
We are often told that regular expressions are slow and should be avoided whenever possible.However, taking into account the overhead of doing some string manipulation oneself (not talking about...
View ArticlePython To extract text around a target word using regex [duplicate]
I wonder if there is any way to use regex to extract, let' say', the first and last 5 words around a target word in a new column using pandas in Python.For example, I would like to extract the first...
View ArticleCypher query regex in return [closed]
In my Neo4J-DB I have nodes which contain a property {:text} which is html.I would like to return the href-attribute of the -tags which are contained in the {:text}-property.So, I don't want to find...
View ArticleHow to pass forward slash (%2F) in laravel 5 url with additional get parameters
Users can search my site. Sometimes they might use a search term containing a forward slash (search with / slash) which when submitted by the form turns into %2F in the url.For...
View ArticleHow does regular expression engine parse regex with recursive subpatterns to...
This regular expression matches palindromes:^((.)(?1)\2|.?)$Can't wrap my head around how it works.When does the recursion end, and when regex breaks from the recursive subpattern and goes to "|.?"...
View ArticleOpensearch / Elasticsearch tokenizer to split on trailing state abbreviation...
I want Opensearch to tokenize transaction information from my bank for a personal project, but I'm unable to determine the right syntax.Here are some examples of transaction descriptions:amazon web...
View ArticleHow can I use regex to remove unnecessary white spaces and make paragraphs...
I have these paragraphs, and here is what I currently have (the example exists in regex101)And this is what I'm looking to achieve (the example exists in regex101)Rules for the regex that I want (it...
View ArticleHow to find "" tag from the string with JAVASCRIPT/ regular expression
I need to validate the incoming string for text <script. Example:string a = "This is a simple <script> string";Now, I need to write a regular expression that will tell me whether this string...
View ArticleRegular expression negative lookbehind for multiple values [closed]
I want to search my logs for exceptions. Starting Regex:\wException\b(The \w is so that I'm catching names of exceptions e.g. InvalidOperationException, and not just the word "exception", and the \b is...
View ArticleHow to determine if a string is a valid variable name?
I'm looking for a quick way (in C#) to determine if a string is a valid variable name. My first intuition is to whip up some regex to do it, but I'm wondering if there's a better way to do it. Like...
View ArticleGoogle Sheets: Convert Value in Millions/Billions to Number
I've copied some data from a website into a sheet that displays dollar values in millions or billions, eg $239 M, $1.23 B, etc.How can I convert these to numeric values?[edit] Found an Excel example,...
View ArticleExtendscript Regex not behaving as expected
I'm making a script for Adobe Indesign to read some data from a CSV file from Excel.There are some CSV annoyances with commas and quotes, so I tried to use regex to split, instead of split(","). The...
View ArticleGet the Index of Upper Case letter from a String [duplicate]
Possible Duplicate:An algorithm to "spacify" CamelCased stringsI have a string like this: MyUnsolvedProblemI want to modify the string like this: My Unsolved ProblemHow can I do that? I have tried...
View ArticleWhat's the regex pattern that comma separates a number's integer part every 3...
I'm looking for a regex pattern that given 1234, returns 1,234 and given 1234.1234, returns 1,234.1234.I'm using JavaScript and am using this pattern for an input on the website with real-time data entry.
View ArticleAssert argument of stubbed function with Regex
I have a stubbed method that is having the following structure printed in the Cypress console:myMethod('start', Object{5})I know that the object has a key, segmentB -> when console logging it in the...
View ArticleAnt: Malformed \uxxxx encoding in propertyfile task
I get the error below with an Ant skript I wrote. I already did some googling and found out, that the problem lies with strings containing \u, which happens under Windows because of the directory...
View Articleckeditor embed unlisted vimeo video
Ckeditor already supports media embedding by pasting the media link, as documented here.https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.htmlHowever it appears that a recent update from...
View Article