Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    ebu
    ebu is offline
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Absolute novice need help pattern matching

    Hi there, I need some help.

    I am a total novice, and I am writing a v short PERL script to process a text file and add in some XML tags.

    The text file contains avalanche reports and also forecasts. A report is 5 or 6 lines of text with the days' report including a string like 'Low (Category 1)' or 'Moderate (Category 2)' ...up to category 5.

    There is then a blank line and the forecast for the next day appears. It contains a similar amount of text and also the category string.

    My problem is that if I patern match the category string, it matches both the report category and the tomorrows forecast category.

    How would I go about just matching one at a time?

    Any help gratefully received,

    cheers

    eb

  • #2
    New Coder
    Join Date
    Aug 2002
    Location
    Moscow, RU
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hello,

    can you please be more specific and add some lines from your database.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •