|
-
Dec 6th, 2007, 12:02 PM
#1
Thread Starter
PowerPoster
Regex check for quotes
What regex pattern can be used to check to see if there is a string quote in a string?
example,
"bob said hi" //string 1
and he said "hello" //string 2
i want to make sure that string 1 or string 2 have quotes (opening and closing, together)
thanks
-
Dec 6th, 2007, 12:21 PM
#2
Re: Regex check for quotes
-
Dec 6th, 2007, 01:52 PM
#3
Re: Regex check for quotes
Which'll match ["Hello" world"] - wouldn't a non-greedy match be more appropriate?
\".+?\" (i.e. match ["Hello" world]
-
Dec 11th, 2007, 11:34 AM
#4
Re: Regex check for quotes
I am not ashamed of my avarice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|