Regex - Alignment

This is a discussion on "Regex - Alignment" within the JavaScript Forum section. This forum, and the thread "Regex - Alignment are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 21st, 2007, 09:32
New Member
Join Date: Mar 2007
Location: Chennai, IN
Age: 26
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Regex - Alignment

For text alignment, I try to catch a sequence in the string like –
<P align = “what”> some text </P>.
Based on that, I parse the html into wiki as –
<< what | some text >>
Unfortunately, the sequence is caught incorrectly, i.e. when I specify two text alignment like –
<P align = “center”> some text </P>
some lines or sentences
<P align = “right”> some text </P>,
the sequence is caught as
<< center | some text </P> some lines or sentences <P align = “right”> some text >>
and not as
<<center | some text >> some lines or sentences <<right | some text>>
Anybody help pls!!!
Reply With Quote

  #2 (permalink)  
Old Mar 21st, 2007, 11:32
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Regex - Alignment

Please post you question in the right forumz!

I've moved them to the Web Development section!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV alignment help e1seix Web Page Design 3 May 26th, 2008 11:19
Add white space using RegEx Access JavaScript Forum 2 Feb 8th, 2008 03:30
[SOLVED] Regex alexgeek JavaScript Forum 3 Dec 23rd, 2007 16:52
[SOLVED] playing with Perl Compatible Regex in field validation eon201 JavaScript Forum 33 Oct 26th, 2007 15:07
Quick Regex Request Ryan Fait PHP Forum 12 May 29th, 2007 22:54


All times are GMT. The time now is 22:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43