Problem wit Regular Expression in HTMLPad

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
otomo
Posts: 4
Joined: Sun Dec 25, 2005 7:41 pm

Problem wit Regular Expression in HTMLPad

Post by otomo »

Hi,

This regular expression should select all table related tags(table, thead, tbody, and the rest), opening or closing

</*t[ahbrd].*>

it works in Notepad+ and in PSpad.

In HTMLPad it selects the whole document (!) starting at the first occurence of a table tag. This is wrong.

Any advice on this? Do I have to change the expression or is HTMLPad a bit buggy when it comes to Regex?


EDIT: I found that I can put my posts as sticky if i like to. Is this the default for every user? Holy Crap.
davenz

Re: Problem wit Regular Expression in HTMLPad

Post by davenz »

That sticky option wasn't there before, I'm sure of it. Well, not that sure but I think I would have noticed it when posting previously. Has someone been playing with the forum options and turned this on automatically, or maybe given us low-level users some kind of moderator privileges?

Dave
davethompson.co.nz
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Problem wit Regular Expression in HTMLPad

Post by Gatis »

Hi otomo,

Try this expressions instead:
<[/]*t[ahbrd][^>]*>

The expression you gave, actually would select also "<td></td>" - (at least in NotePad ++).

As for the sticky option. Not sure if there is a problem, I will try to check this out..

Kind regards,
Gatis
Kind regards,
Gatis Avots
otomo
Posts: 4
Joined: Sun Dec 25, 2005 7:41 pm

Re: Problem wit Regular Expression in HTMLPad

Post by otomo »

Thanks Gatis, your Expression works.

Hmm strange though that my version worked in Notepad++ but not in HTMLPad.

I am still tempted to make this a sticky. :twisted:
Post Reply