Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
tr
- Page 1
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
… -->Popular Baby Names </td> </
tr
> <
tr
bgcolor="#333366"><td colspan="…height="2"></td></
tr
> <
tr
><td class="graystars" width…;September 12, 2007</td> </
tr
> <
tr
bgcolor="#333366"><td colspan="…
Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Tom_45
…from the td tags in an html downloaded file. <
tr
align="right"><td>236<…><td>Allyson</td> <
tr
align="right"><td>237<…><td>Pamela</td> <
tr
align="right"><td>238<…><td>Kristine</td> <
tr
align="right"><td>239<…
Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Tom_45
…from the td tags in an html downloaded file. <
tr
align="right"><td>236<…><td>Allyson</td> <
tr
align="right"><td>237<…><td>Pamela</td> <
tr
align="right"><td>238<…><td>Kristine</td> <
tr
align="right"><td>239<…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by AndreRet
…look something like - import re html_data = ''' <
tr
align="right"><td>236<…lt;td>Allyson</td> <
tr
align="right"><td>…;td>Pamela</td> <
tr
align="right"><td>…lt;td>Kristine</td> <
tr
align="right"><td>…
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>' then re.split(pat,html) returns ['<
tr
align="right">', '236', '', 'Roy', '', 'Allyson', ''] and re…
Re: Extracting values from a regex match
Programming
Software Development
2 Months Ago
by Reverend Jim
… lazy matching which matches the shortest possible string. html = '<
tr
align="right"><td>236<…;(.+?)</td>' then re.split(pat,html) returns ['<
tr
align="right">', '236', '', 'Roy', '', 'Allyson', ''] and re…
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
… if '2024-01-24' in x]: print(line) if <
tr
align="right"> only appears in the lines…
Re: Extracting values from capturing groups in regex
Programming
Software Development
2 Months Ago
by Reverend Jim
…;' for line in open('yourfile.html'): if line.startswith('<
tr
align="right"><td>'): print(re…
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 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 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
1 Month 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: Difference between tr and s
Programming
Software Development
17 Years Ago
by KevinADC
tr
/// only replaces characters for characters (transliteration). It is very limited … replace all A's with Z's
tr
is the better choice:
tr
/A/Z/;
tr
/// can't even use case insensitive matching… have to do this:
tr
/aA/Z/; the only useful option with
tr
/// is the range operator:
tr
/a-z/A-Z/ besides…
change the select value please need quick help
Programming
Web Development
10 Years Ago
by Nirmeen Ased
<
tr
> <td><strong>… ?> </select> </td> </
tr
> <
tr
> <td> <strong>Teacher name…}?> </select> </td> </
tr
> Hello, I've this code and i need to…
jquery live works, on does not
Programming
Web Development
11 Years Ago
by McLaren
//$('
tr
[id^=system_type_] input').live('change', function() { $('
tr
[id^=system_type_] input').on('change', function() { alert('a'); console.log($(this).val()); }); its not the first time, but I read that live is deprecated so I want to use on. But why it does not work in this code?
want to selected the combo box title with db
Programming
Web Development
9 Years Ago
by rjusman90
<
tr
class="tablerow"> <td>Page Id&…
Re: insert multiple records in one table php/mysql
Programming
Web Development
9 Years Ago
by abubacker
… -- > <td><?php echo $i;?> <
tr
> <td><?php echo $i;?><…;text" /></td> <?php }?> </
tr
> </td> <td> <?php echo…;text" /></td> <?php }?> </
tr
>
Re: Get Event array element
Programming
Web Development
11 Years Ago
by khiemkim.xuan
<
tr
><th>Start</th><td&…].event[start][minute],this)"> </td></
tr
>
Re: padding
Digital Media
UI / UX Design
9 Years Ago
by edbr
tr
{background-color:#ede6c9; color: black;}
Re: Repeatating field
Programming
Web Development
12 Years Ago
by manu555
<
tr
> <td width="169" class="label&…" value="" /> </td> </
tr
> <
tr
> <td class="label">Box…></td> </
tr
> I want to show second <
tr
> </
tr
> fields repeating until match value…
Re: AGE calculation giving difference in Days
Programming
Web Development
10 Years Ago
by chaitu11
<
tr
> <td class="lable2"…quot;dob_error"></td> </
tr
> <
tr
> <script type="text/javascript"… calendar.set("inputField"); </script> <
tr
> <td class="lable2">Age :…;hidden" value=""> </
tr
>
Re: Looking for table rows with Regular expression.
Programming
Web Development
19 Years Ago
by Mayhem50
<
tr
>(\r*\s*.*\r*)*(</
tr
>) This to me is what i think should find it but it don't work! :evil:
Re: How to fix parse erro, please help me.
Programming
Web Development
12 Years Ago
by help4kids
<
tr
><td>Thank's for registring to Auctionleo.com. Your login detail is </td></
tr
> >In line 148 remove the single quotes from Thank's.. Please use **[code]** tags to post your codes
Re: Validation
Programming
Software Development
11 Years Ago
by Master Mascus
<
tr
> <td class="style2"> Password :&…; SetFocusOnError="true" /> </td> </
tr
>
Re: image size
Programming
Web Development
11 Years Ago
by chandub
<
tr
> <td><input type="file" …="jpg,gif,png" /> </td> <
tr
> am trying to get image height and width by…
Re: Help with a TO_CHAR function?
Programming
Databases
13 Years Ago
by debasisdas
Tr
using this [code]SELECT TO_CHAR(sysdate,'DAY') from dual [/code] for the 2nd part of the question use the above query (modified as per your requirement) and use [B]group by[/B] clause on the day.
Re: How to get good backlinks?
Digital Media
Digital Marketing
Search Engine Strategies
11 Years Ago
by stanelly
Tr
to get good backlinks with the help of off-page optimization techniques...But don't collect low quality backlinks
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