Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: parsing an ASP file

by perlinux (Deacon)
on May 12, 2004 at 14:03 UTC ( [id://352741]=note: print w/replies, xml ) Need Help??


in reply to parsing an ASP file

Good job! Do you think it can work for other "tag" languages (PHP, JSP), only changing the tag? Or changing the code... Does it needs great changes? I don't ever worked with ASP...

Italian: ho seguito la discussione di questo code in chat... :-)

Replies are listed 'Best First'.
Re: Re: parsing an ASP file
by dada (Chaplain) on May 12, 2004 at 15:27 UTC
    as far as I know (which isn't very far :-) PHP uses <? .. ?> as delimiters, so you could just change "%" to "?" in the eqs above (and of course, change "ASP" to "PHP" if you prefer) and it should work.

    JSP seems to be using its own tag library (things like <jsp:getProperty .. /> and so on) as well as blocks like <% .. %>. perhaps you could use this tool and a full-blown HTML (or XHTML) parser to recognize JSP tags in HTML blocks, but I really don't know.

    cheers,
    Aldo

    King of Laziness, Wizard of Impatience, Lord of Hubris

      PHP is configurable to use [http://us4.php.net/basic-syntax|many tags: <? <% <?php and <script language="php">

      --
      I'm not belgian but I play one on TV.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://352741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found