Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
regular
- Page 1
How Build Html form ?
Programming
3 Weeks Ago
by Kirubel_2
…-radius: 5px; color: black; font-family: 'Lucida Sans', 'Lucida Sans
Regular
', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; font… .input-box input::placeholder{ font-family: 'Lucida Sans', 'Lucida Sans
Regular
', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; font…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
3 Weeks Ago
by Hanginium65
… file_info.isreg(): # Read the contents... logger.info(f"Is
regular
file: {file_info.name}") file_contents = file_tar_bz2.extractfile(file_info).read() elif…
Re: What are the key components of an effective email marketing campaign?
Digital Media
Digital Marketing
2 Weeks Ago
by AndyBeohar
Based on my experience and observations in my professional career, I believe the following elements should be essential to make email marketing effective and successful: Engaging subject lines, Personalized content, Clear calls-to-action, Mobile optimization, Segmentation/Targeting, and
Regular
performance tracking/analysis.
Re: What is best method for link building nowadays?
Digital Media
Digital Marketing
Search Engine Strategies
1 Week Ago
by KomalBhatt
Use keywords in anchor text. Commit to
regular
link building. Build links from relevant websites. Create infographics and other visual assets.
Re: This is me venting
Community Center
Meta DaniWeb
1 Week Ago
by Dani
… Google rankings tanked a lot due to no longer having
regular
news stories and editorial daily. However, I'm still keeping…
Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
…', '9') ('Collin', '', 'Collin') ('Raquel', '', 'Raquel') I'm relatively new to
regular
expressions so be gently, but any help would be appreciated…
Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Tom_45
…', '9') ('Collin', '', 'Collin') ('Raquel', '', 'Raquel') I'm relatively new to
regular
expressions so be gently, but any help would be appreciated…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
Just process the file line by line and apply the
regular
expression to particular lines. I can't give you an expression that matches only the lines you showed me with a guarantee that in matches nothing else without seeing the entire file.
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by AndreRet
… consider using non-greedy quantifiers - [Minimal or non-greedy quantifiers](
Regular
expressions are generally considered greedy because an expression with repetitions…
Re: How to get organic traffic in a website?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by KomalBhatt
…. Optimize website speed, mobile responsiveness, and crawlability. **Keyword Research:** Conduct
regular
keyword research to identify new opportunities. Optimize your content for…
Re: How do you use LLM AI tools in your daily programming workflow ?
Community Center
1 Month Ago
by rproffitt
… it for many things. Examples such a SQL queries and
regular
expressions. He tells me they saved mid 5 figures USD…
Re: A module that comes with Python, doesn´t register?
Programming
Web Development
1 Month Ago
by Reverend Jim
… but I am currently using an old laptop while my
regular
one is in the shop. I noticed a failing on…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
1 Month Ago
by Salem
… (you're just making a backup), you can use the
regular
file. Here you can see that it just reads the…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
For html = '<tr align="right"><td>236</td><td>Roy</td><td>Allyson</td>' pat = '<td>(.+?)</td>' then re.split(pat,html) returns ['<tr align="right">', '236', '', 'Roy', '', 'Allyson', ''] and re.split(pat,html)[1::2] will …
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Reverend Jim
The trick is to use lazy matching which matches the shortest possible string. html = '<tr align="right"><td>236</td><td>Roy</td><td>Allyson</td>' pat = '<td>(.+?)</td>' then re.split(pat,html) returns ['<tr align="right">', '236', …
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
I'm not getting the results you presented, I'm getting the whole file not just the tr tags. The tr tags I used was just a subset of the entire file.
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
You can either read the entire file into a list, then filter that list, or you could process it line by line and process each matching line. For example (using my file) for line in open('usblog.txt'): if '2024-01-24' in line: print(line) or text = open('usblog.txt').readlines() for line in [x for x in text if…
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by pritaeas
Sidenote: If you want to learn, understand and experiment with regexes I can highly recommend RegexBuddy.
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
It's a long one, but here it is. <head><title>Popular Baby Names</title> <meta name="dc.language" scheme="ISO639-2" content="eng"> <meta name="dc.creator" content="OACT"> <meta name="lead_content_manager" content="JeffK"&…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
Try import re pat = '<td>(.+?)</td>' for line in open('yourfile.html'): if line.startswith('<tr align="right"><td>'): print(re.findall(pat,line)) I realized that findall is cleaner than split. You might want to have a look at [this regex online tool](https://www…
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Reverend Jim
Also [autoregex](https://www.autoregex.xyz/)
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by AndreRet
Same question, different post - [Extracting values from capturing groups in rege](https://www.daniweb.com/programming/software-development/threads/541420/extracting-values-from-capturing-groups-in-regex)
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
Issue resolved
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Tom_45
Question has been answered. The correct pattern is: matches = re.findall(r'<td>(\d+)+<\/td><td>(\w+)<\/td><td>(\w+)', file)
Re: Postfix authentication problem
Hardware and Software
Linux and Unix
1 Month Ago
by chickenbirds
> I am trying to set-up Postfix on my Ubuntu local web development machine for send-only e-mails using Gmail so I can test e-mails sent by a web app I am developing. Even though this is an old post I wanted to reply as I found it while trying to setup my own postfix mailrelay on my private cloud server with Debian that hosts our small …
Re: Javascript variable scoping issue
Programming
Web Development
11 Years Ago
by singularity~
Regular
Regular expression beginner
Programming
Software Development
12 Years Ago
by arindam31
Regular
Expression (RE) They can be used with string operations. Using … a p.iiiigand no gbng gtrg ghgg') p.i Slash ( \ )
Regular
expressions use the backslash character ('\') to indicate special forms or…
Regular expression matching in a string
Programming
Software Development
18 Years Ago
by roverphoenix
Regular
expression pattern match in a string, I only checked with * as wild card, other wild card characters are easy implement but I havent done that. any problems you can email me @ [email]rramaswa@usc.edu[/email] platform - Unix/Linux, havent tested in windows, should'nt be a problem unless some standard header files are missing.
regular expression
Programming
Web Development
10 Years Ago
by abhijit_2
regular
expression that accept only letters OR numbers.
Re: regular expression
Programming
Web Development
10 Years Ago
by pritaeas
Regular
expressions are not for creating strings, but for parsing them.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC