Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on spliti() multiple "string patterns" in the Shared & Semi-Dedicated forum
hoi. I'm using spliti() to manipulate user input on my forums. but cause the way the strings are feeded into the script (textarea), there are ...

  1. #1
    Smo
    Smo is offline
    JPC Addict
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    218

    spliti() multiple "string patterns"

    hoi.

    I'm using spliti() to manipulate user input on my forums. but cause the way the strings are feeded into the script (textarea), there are both newlines and spaces in the string.

    I cant figure out how to make spliti() split strings by 2 "string pattern"s. if it's even possible.

    any help would be apreciated.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You can group patterns with () and create a set of patterns with [], so something like

    [(patern 1)(pattern 2)]

    would match either patern 1 or patern 2.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Bookmarks

Posting Permissions

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