|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
regexp
How can I write a regexp to find sentences between quotation marks in a text file. I want to search a text file and find all sentences between "
|
|
#2
|
|||
|
|||
|
RE: regexp
|
|
#3
|
|||
|
|||
|
RE: regexp
Hi notepad,
your code prints all quotation marks. But what I need is not the quotation itself. I want the sentences between quotation marks to be printed line by line. |
|
#4
|
|||
|
|||
|
RE: regexp
whoops, i'll have to debug it when i get home. expect a working example this evening
|
|
#5
|
|||||
|
|||||
|
RE: regexp
ahhh here we are
php Code:
|
|
#6
|
|||
|
|||
|
RE: regexp
this is pretty fun to play with
|
|
#7
|
|||
|
|||
|
RE: regexp
What about '"(.*)"' where $1 is the sentence between " " ?
This is just on top of my head - havent testet it or something... |
|
#8
|
|||
|
|||
|
RE: regexp
Sorry... Think it should be: '"(.*?)"'
|
|
#9
|
|||
|
|||
|
RE: regexp
yah if you can shorten the code to an actual regular expression.. my code suddenly doesn't seem so impressive
|
|
#10
|
|||
|
|||
|
RE: regexp
Sorry... Maybe it doesn't work
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > regexp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|