#Regular Expressions
Explore tagged Tumblr posts
a-fox-studies · 1 month ago
Text
Tumblr media Tumblr media
some kind of day at the codeblr discord server
@orthogonal-slut @b8horpet @moose-mousse
the full series
22 notes · View notes
yesterdays-xkcd · 1 year ago
Text
Tumblr media
Wait, forgot to escape a space. Wheeeeee[taptaptap]eeeeee!
Regular Expressions [Explained]
Transcript Under the Cut
[in a yellow box:] Whenever I learn a new skill I concoct elaborate fantasy scenarios where it lets me save the day.
Megan: Oh no! The killer must have followed her on vacation!
[Megan points to computer.] Megan: But to find them we'd have to search through 200 MB of emails looking for something formatted like an address! Cueball: It's hopeless!
Off-panel voice: Everybody stand back.
Off-panel voice: I know regular expressions.
[A man swings in on a rope, toward the computer.] tap tap
The word PERL! appears in a bubble.
[The man swings away, and the other characters cheer.
87 notes · View notes
utopicwork · 3 months ago
Text
Im going over regex fundamentals and if anyone could help I'm having trouble with this lesson:
Tumblr media
I even had the solution it says is correct but it seems to not be accepting it?
12 notes · View notes
forlorn-plushie · 3 months ago
Text
Tumblr media
6 notes · View notes
ashtonfei · 8 months ago
Video
youtube
Import HTML with Regex in Google Sheets with Chalkline Functions
2 notes · View notes
mentalisttraceur-software · 11 months ago
Text
I am a little confused why I never hear about regex libraries compiling regexes to a list of function pointers.
From my naive initial think at the problem, seems like you could save a lot of branches that way; a good middle ground between
the usual approach of compiling to an intermediate representation which is only more-efficiently interpreted, and
the heavyweight approach of JIT-compiling the regex to actual machine code.
2 notes · View notes
cpunch71 · 2 years ago
Text
did you know Go's regex engine has a repetition limit? me either! that & more in my new journal entry :3
8 notes · View notes
dkl9 · 2 years ago
Text
Tumblr media
/energy*/, which matches "energ", "energy", "energyy", "energyyy", etc
(from AN #766)
2 notes · View notes
disposable-semicolons · 1 month ago
Text
90% of spam posts would never see the light of day if Tumblr supported regular expression based filters. Imagine you knew there was a spammer wave trying to sell people dentures, and you could just block something like
/\(new\) \(pair of \)?dentures/
and only occasionally have to update it when the fuckers start leetspeak and the like (filtering for example d[e3]ntur[e3]s? to catch denture, d3nture, dentur3s, and so on.)
0 notes
daveio · 4 months ago
Text
Tumblr media
the thing I love about regular expressions is just how readable they are
0 notes
intelliatech · 11 months ago
Text
Top 10 ChatGPT Prompts For Software Developers
Tumblr media
ChatGPT can do a lot more than just code creation and this blog post is going to be all about that. We have curated a list of ChatGPT prompts that will help software developers with their everyday tasks. ChatGPT can respond to questions and can compose codes making it a very helpful tool for software engineers.
While this AI tool can help developers with the entire SDLC (Software Development Lifecycle), it is important to understand how to use the prompts effectively for different needs.
Prompt engineering gives users accurate results. Since ChatGPT accepts prompts, we receive more precise answers. But a lot depends on how these prompts are formulated. 
To Get The Best Out Of ChatGPT, Your Prompts Should Be:
Clear and well-defined. The more detailed your prompts, the better suggestions you will receive from ChatGPT.
Specify the functionality and programming language. Not specifying what you exactly need might not give you the desired results.
Phrase your prompts in a natural language, as if asking someone for help. This will make ChatGPT understand your problem better and give more relevant outputs.
Avoid unnecessary information and ambiguity. Keep it not only to the point but also inclusive of all important details.
Top ChatGPT Prompts For Software Developers
Let’s quickly have a look at some of the best ChatGPT prompts to assist you with various stages of your Software development lifecycle.
1. For Practicing SQL Commands;
Tumblr media
2. For Becoming A Programming Language Interpreter;
Tumblr media
3. For Creating Regular Expressions Since They Help In Managing, Locating, And Matching Text.
Tumblr media
4. For Generating Architectural Diagrams For Your Software Requirements.
Prompt Examples: I want you to act as a Graphviz DOT generator, an expert to create meaningful diagrams. The diagram should have at least n nodes (I specify n in my input by writing [n], 10 being the default value) and to be an accurate and complex representation of the given input. Each node is indexed by a number to reduce the size of the output, should not include any styling, and with layout=neato, overlap=false, node [shape=rectangle] as parameters. The code should be valid, bugless and returned on a single line, without any explanation. Provide a clear and organized diagram, the relationships between the nodes have to make sense for an expert of that input. My first diagram is: “The water cycle [8]”.  
Tumblr media
5. For Solving Git Problems And Getting Guidance On Overcoming Them.
Prompt Examples: “Explain how to resolve this Git merge conflict: [conflict details].” 6. For Code generation- ChatGPT can help generate a code based on descriptions given by you. It can write pieces of codes based on the requirements given in the input. Prompt Examples: -Write a program/function to {explain functionality} in {programming language} -Create a code snippet for checking if a file exists in Python. -Create a function that merges two lists into a dictionary in JavaScript.  
7. For Code Review And Debugging: ChatGPT Can Review Your Code Snippet And Also Share Bugs.
Prompt Examples: -Here’s a C# code snippet. The function is supposed to return the maximum value from the given list, but it’s not returning the expected output. Can you identify the problem? [Enter your code here] -Can you help me debug this error message from my C# program: [error message] -Help me debug this Python script that processes a list of objects and suggests possible fixes. [Enter your code here]
8. For Knowing The Coding Best Practices And Principles: It Is Very Important To Be Updated With Industry’s Best Practices In Coding. This Helps To Maintain The Codebase When The Organization Grows.
Prompt Examples: -What are some common mistakes to avoid when writing code? -What are the best practices for security testing? -Show me best practices for writing {concept or function} in {programming language}.  
9. For Code Optimization: ChatGPT Can Help Optimize The Code And Enhance Its Readability And Performance To Make It Look More Efficient.
Prompt Examples: -Optimize the following {programming language} code which {explain the functioning}: {code snippet} -Suggest improvements to optimize this C# function: [code snippet] -What are some strategies for reducing memory usage and optimizing data structures? 
10. For Creating Boilerplate Code: ChatGPT Can Help In Boilerplate Code Generation.
Prompt Examples: -Create a basic Java Spring Boot application boilerplate code. -Create a basic Python class boilerplate code
11. For Bug Fixes: Using ChatGPT Helps Fixing The Bugs Thus Saving A Large Chunk Of Time In Software Development And Also Increasing Productivity.
Prompt Examples: -How do I fix the following {programming language} code which {explain the functioning}? {code snippet} -Can you generate a bug report? -Find bugs in the following JavaScript code: (enter code)  
12. Code Refactoring- ChatGPt Can Refactor The Code And Reduce Errors To Enhance Code Efficiency, Thus Making It Easier To Modify In The Future.
Prompt Examples –What are some techniques for refactoring code to improve code reuse and promote the use of design patterns? -I have duplicate code in my project. How can I refactor it to eliminate redundancy?  
13. For Choosing Deployment Strategies- ChatGPT Can Suggest Deployment Strategies Best Suited For A Particular Project And To Ensure That It Runs Smoothly.
Prompt Examples -What are the best deployment strategies for this software project? {explain the project} -What are the best practices for version control and release management?  
14. For Creating Unit Tests- ChatGPT Can Write Test Cases For You
Prompt Examples: -How does test-driven development help improve code quality? -What are some best practices for implementing test-driven development in a project? These were some prompt examples for you that we sourced on the basis of different requirements a developer can have. So whether you have to generate a code or understand a concept, ChatGPT can really make a developer’s life by doing a lot of tasks. However, it certainly comes with its own set of challenges and cannot always be completely correct. So it is advisable to cross-check the responses. Hope this helps. Visit us- Intelliatech
0 notes
scrmnviking · 2 years ago
Note
Being able to do RegEx searches in Libre Office by itself makes it superior to Office. Being free (or pay what you want - it's worth donating to) is just a bonus.
Hello, Mr. Gaiman. Which program do you use to write? I’d really like recommendations that are safe for writers to use. I just don’t trust Google Docs anymore. Thanks!
I've been using Libre Office for a long time, and really like it. I use Final Draft for scripts.
3K notes · View notes
redactedconcepts · 1 year ago
Text
Regular Expression
A regular expression, commonly called a “regexp”, is a sequence of characters that define a search pattern.  It is mainly for use in pattern matching with strings, or string matching (i.e. it operates like a “find and replace” command). While it is a very powerful tool, it is also very dangerous because of its complexity.
Tumblr media
Some people, when confronted with a problem, think “I know, I’ll use regular expressions.”   Now they have two problems."(super classic joke in the industry)
One thing you have to be careful with is that different languages use different regexp engines. That means that a regexp in Python, for example, will be interpreted differently in Javascript:
Regular expressions are everywhere and software engineers, no matter their positions, will have to use them during their careers. System administrators and DevOps are the ones using them the most because they are very handy for log parsing.
Read about regexp:
http://www.regular-expressions.info/
http://www.w3schools.com/jsref/jsref_obj_regexp.asp Play with regexp (or compose them):
Ruby: http://rubular.com/
PHP/Javascript/Python: https://regex101.com/
0 notes
tpointtechblog · 1 year ago
Text
Demystifying Regular Expressions in Java: A Comprehensive Guide
What are Regular Expressions in Java? Regular expressions, often abbreviated as regex, are powerful tools used for pattern matching and string manipulation in Java programming. In this article, we’ll delve into the world of Regular Expressions in Java, exploring how they work, how to use them effectively, and providing a handy regex cheat sheet for quick reference. Understanding Regular Expressions in Java.....
How to Make Java Regular Expression Case Insensitive in Java
Regular Expression Matching - Tpoint Tech
0 notes
windsails · 1 year ago
Text
my beautiful child regular expression
1 note · View note
cpunch71 · 2 years ago
Text
one of my favorite quotes from rob pike is about why Go's regex engine has a hard cap repetition limit of 1000
"The 1000 is arbitrary but - speaking just for myself - a repeat count as high as a thousand tells me that a regular expression is the wrong mechanism for this problem. A simple loop would be vastly more efficient.
You are using a steamroller to press a shirt."
quote is from
programming languages are usually at least kind of legible, and then there's regular expressions, which look like arcane symbols used for summoning every demon in hell
Tumblr media
this is technically human readable. someone wrote this.
442 notes · View notes